From 0eed1166a39b4e9b010aa9780390e2cb42bfc022 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sun, 9 Feb 2025 13:08:35 -0700 Subject: [PATCH] docs: changelog for #6606 --- docs/changelog.md | 2 ++ docs/config/lua/keyassignment/ShowLauncherArgs.md | 8 ++------ wezterm-gui/src/termwindow/mod.rs | 2 +- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/docs/changelog.md b/docs/changelog.md index e801da882..05f524e39 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -56,6 +56,8 @@ As features stabilize some brief notes about them will accumulate here. @mgpinf! #6320 * macOS: toast notifications now use UNUserNotificationCenter. This requires that WezTerm.app be code-signed, which is the case for official binaries. +* [ShowLauncherArgs](config/lua/keyassignment/ShowLauncherArgs.md) now allows + customizing the help text. Thanks to @mgpinf! #6606 #### New * [wezterm.serde](config/lua/wezterm.serde/index.md) module for serialization diff --git a/docs/config/lua/keyassignment/ShowLauncherArgs.md b/docs/config/lua/keyassignment/ShowLauncherArgs.md index fe7c8e401..64f48fabd 100644 --- a/docs/config/lua/keyassignment/ShowLauncherArgs.md +++ b/docs/config/lua/keyassignment/ShowLauncherArgs.md @@ -9,14 +9,10 @@ The arguments are a lua table with the following keys: * `flags` - required; the set of flags that specifies what to show in the launcher * `title` - optional; the title to show in the tab while the launcher is active - -{{since('nightly')}} - -These additional keys are also available * `help_text` - a string to display when in the default mode. Defaults to: - `"Select an item and press Enter=launch Esc=cancel /=filter"` + `"Select an item and press Enter=launch Esc=cancel /=filter"` {{since('nightly', inline=True)}} * `fuzzy_help_text` - a string to display when in fuzzy finding mode. Defaults to: - `"Fuzzy matching: "` + `"Fuzzy matching: "` {{since('nightly', inline=True)}} The possible flags are listed below. You must explicitly list each item that you want to include in the launcher. If you only specify `"FUZZY"` then you will see diff --git a/wezterm-gui/src/termwindow/mod.rs b/wezterm-gui/src/termwindow/mod.rs index 395f99c5a..b8b50325f 100644 --- a/wezterm-gui/src/termwindow/mod.rs +++ b/wezterm-gui/src/termwindow/mod.rs @@ -2383,7 +2383,7 @@ impl TermWindow { let flags = args.flags; let help_text = args.help_text.unwrap_or( "Select an item and press Enter=launch \ - Esc=cancel /=filter" + Esc=cancel /=filter" .to_string(), ); let fuzzy_help_text = args