From 906aec11c1a6fbb758fb42ae1a95dc100a1b40ef Mon Sep 17 00:00:00 2001 From: multiplex55 <6619098+multiplex55@users.noreply.github.com> Date: Thu, 28 Aug 2025 19:38:30 -0400 Subject: [PATCH] Document WezTerm default editor --- README.md | 2 +- settings.json | 2 +- tests/wezterm_command.rs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c9e66a3e..538f9f99 100644 --- a/README.md +++ b/README.md @@ -346,7 +346,7 @@ Display local network interface addresses with the `ip` prefix. Append `public` 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 Enter to copy it to the clipboard. ### Notes Plugin -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`. +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`. When the search box is empty the launcher shows these shortcuts along with `app ` entries for saved actions. diff --git a/settings.json b/settings.json index 5a1bd4d5..07a5b8b8 100644 --- a/settings.json +++ b/settings.json @@ -20,7 +20,7 @@ "note_save_on_close": false, "note_always_overwrite": false, "note_images_as_links": false, - "note_external_editor": null, + "note_external_editor": "wezterm", "note_more_limit": 5, "enable_toasts": true, "toast_duration": 3.0, diff --git a/tests/wezterm_command.rs b/tests/wezterm_command.rs index 083992d0..bd3c2add 100644 --- a/tests/wezterm_command.rs +++ b/tests/wezterm_command.rs @@ -4,11 +4,11 @@ use std::path::Path; #[test] fn builds_wezterm_command() { let note = Path::new("note.txt"); - let (cmd, _cmd_str) = build_wezterm_command(note, "nvim"); + let (cmd, _cmd_str) = build_wezterm_command(note, "wezterm"); assert_eq!(cmd.get_program().to_string_lossy(), "wezterm"); let args: Vec<_> = cmd .get_args() .map(|a| a.to_string_lossy().into_owned()) .collect(); - assert_eq!(args, ["start", "--", "nvim", "note.txt"]); + assert_eq!(args, ["start", "--", "wezterm", "note.txt"]); }