Skip to content

Commit bfe904c

Browse files
authored
Merge pull request #614 from multiplex55/codex/add-wezterm-support-to-documentation-and-settings
Document WezTerm as default note editor
2 parents 74efc50 + 906aec1 commit bfe904c

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ Display local network interface addresses with the `ip` prefix. Append `public`
346346
Type `color` to open an interactive picker or specify a hex value such as `color #ff0000`. The plugin outputs the selected color in multiple formats: `#RRGGBB`, `rgb(r, g, b)` and `hsl(h, s%, l%)`. Use the arrow keys to highlight a format and press <kbd>Enter</kbd> to copy it to the clipboard.
347347

348348
### Notes Plugin
349-
Manage quick Markdown notes with the `note` prefix. The editor window includes an **Open externally** button to open the current note in another program. A setting under the Note plugin labelled *Open externally* chooses the default opener: **Powershell**, **Notepad** or **Neither** to be asked each time. The **Powershell** option uses PowerShell 7 when available (listed as "Powershell" in the menu) and falls back to `powershell.exe`.
349+
Manage quick Markdown notes with the `note` prefix. The editor window includes an **Open externally** button to open the current note in another program. A setting under the Note plugin labelled *Open externally* chooses the default opener: **WezTerm**, **Powershell**, **Notepad** or **Neither** to be asked each time. **WezTerm** is supported and is the default external editor. The **Powershell** option uses PowerShell 7 when available (listed as "Powershell" in the menu) and falls back to `powershell.exe`.
350350

351351
When the search box is empty the launcher shows these shortcuts along with `app <alias>` entries for saved actions.
352352

settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"note_save_on_close": false,
2121
"note_always_overwrite": false,
2222
"note_images_as_links": false,
23-
"note_external_editor": null,
23+
"note_external_editor": "wezterm",
2424
"note_more_limit": 5,
2525
"enable_toasts": true,
2626
"toast_duration": 3.0,

tests/wezterm_command.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ use std::path::Path;
44
#[test]
55
fn builds_wezterm_command() {
66
let note = Path::new("note.txt");
7-
let (cmd, _cmd_str) = build_wezterm_command(note, "nvim");
7+
let (cmd, _cmd_str) = build_wezterm_command(note, "wezterm");
88
assert_eq!(cmd.get_program().to_string_lossy(), "wezterm");
99
let args: Vec<_> = cmd
1010
.get_args()
1111
.map(|a| a.to_string_lossy().into_owned())
1212
.collect();
13-
assert_eq!(args, ["start", "--", "nvim", "note.txt"]);
13+
assert_eq!(args, ["start", "--", "wezterm", "note.txt"]);
1414
}

0 commit comments

Comments
 (0)