* feat: add alphabet argument to ShowLauncherArgs - The labels are now based on the provided argument or the default value - The 'alphabet' string defaults to "1234567890abcdefghilmnopqrstuvwxyz" - Optional argument 'alphabet' is added to 'ShowLauncherArgs' * docs: update documentation for ShowLauncherArgs * fix: push (max_label_len+3) whitespaces if always_fuzzy false in InputSelector This is to handle the edge case in InputSelector when max_label_len is 2 and the labels shift one place to the left when entering fuzzy mode and back one place to the right when exiting fuzzy mode. * fix: push (max_label_len+3) whitespaces if 'FUZZY' not present This is to handle the edge case in Launcher when max_label_len is 2 and the labels shift one place to the left when entering fuzzy mode and back one place to the right when exiting fuzzy mode. * feat: add configuration option for Launcher alphabet - This is in order to be able to configure the alphabet for actions corresponding to KeyAssignment enums 'ShowLauncher', 'ShowTabNavigator' - If `launcher_alphabet` configuration option not set, the value defaults to '1234567890abcdefghilmnopqrstuvwxyz' * docs: add launcher_alphabet documentation * docs: update documentation for ShowLauncherArgs Co-authored-by: Wez Furlong <wez@wezfurlong.org>
55 lines
2.4 KiB
Markdown
55 lines
2.4 KiB
Markdown
# `ShowLauncherArgs`
|
|
|
|
{{since('20220319-142410-0fcdea07')}}
|
|
|
|
Activate the [Launcher Menu](../../launch.md#the-launcher-menu)
|
|
in the current tab, scoping it to a set of items and with an optional title.
|
|
|
|
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
|
|
* `help_text` - a string to display when in the default mode. Defaults to:
|
|
`"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: "` {{since('nightly', inline=True)}}
|
|
* `alphabet` - a string of unique characters. The characters in the string are used
|
|
to calculate one or two key press shortcuts that can be used to quickly choose from
|
|
the Launcher when in the default mode. Defaults to the same value as
|
|
[launcher_alphabet](../config/launcher_alphabet.md) {{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
|
|
an empty launcher:
|
|
|
|
* `"FUZZY"` - activate in fuzzy-only mode. By default the launcher will allow
|
|
using the number keys to select from the first few items, as well as *vi* movement
|
|
keys to select items. Pressing `/` will enter fuzzy filtering mode, allowing you
|
|
to type a search term and reduce the set of matches.
|
|
When you use the `"FUZZY"` flag, the launcher activates directly in fuzzy filtering
|
|
mode.
|
|
* `"TABS"` - include the list of tabs from the current window
|
|
* `"LAUNCH_MENU_ITEMS"` - include the [launch_menu](../config/launch_menu.md) items
|
|
* `"DOMAINS"` - include multiplexing domains
|
|
* `"KEY_ASSIGNMENTS"` - include items taken from your key assignments
|
|
* `"WORKSPACES"` - include workspaces
|
|
* `"COMMANDS"` - include a number of default commands {{since('20220408-101518-b908e2dd', inline=True)}}
|
|
|
|
The flags can be joined together using a `|` character, so `"TABS|DOMAINS"` is
|
|
an example of a set of flags that will include both tabs and domains in the
|
|
list.
|
|
|
|
This example shows how to make `ALT-9` activate the launcher directly in fuzzy
|
|
matching mode, and have it show only tabs:
|
|
|
|
```lua
|
|
config.keys = {
|
|
{
|
|
key = '9',
|
|
mods = 'ALT',
|
|
action = wezterm.action.ShowLauncherArgs { flags = 'FUZZY|TABS' },
|
|
},
|
|
}
|
|
```
|
|
|