* 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>
* feat: add Confirmation to KeyAssignment
This displays a confirmation menu similar to close menu.
An optional cancellation action that is triggered when the user
cancels/declines.
Co-authored-by: Wez Furlong <wez@wezfurlong.org>
* feat: add help_text, fuzzy_help_text arguments in ShowLauncherArgs
Add help_text, fuzzy_help_text optional arguments in ShowLauncherArgs.
Similar to description, fuzzy_description arguments present in
InputSelector.
If help_text argument is not provided, default value of `"Select an item
and press Enter=launch Esc=cancel /=filter"` is displayed
If fuzzy_help_text argument is not provided, default value of `"Fuzzy
matching: "` is displayed
* docs: update documentation for ShowLauncherArgs
* perf: pass LauncherActionArgs struct rather than reference
Since fields are being cloned in the callee function, pass the struct
rather than reference to it.
* Select current tab option as initial choice in ShowTabNavigator
This introduces the following changes
- Select the choice corresponding to the active tab as the initial choice
* docs: Add current tab choice documentation in ShowTabNavigator
This changes the following
- Update ShowTabNavigator.md with current tab choice documentation
* refactor: remove redundant local variable
* option to configure PromptInputLine prompt
- Introduces an option to set custom prompt text
- If 'prompt' not passed in parameters, default value of "> " used
* commit: update documentation for PromptInputLine
* Update docs/config/lua/keyassignment/PromptInputLine.md
---------
Co-authored-by: Wez Furlong <wez@wezfurlong.org>
* First step towards implementing #4226.
* Added InputSelector config options.
* Format + fix to prepare for PR to resolve#4226.
* Accept suggestion about pop().
* Fix typo.
* Tried fixing stuff from the feedback.
* Fixed typo.
* Fixed small mistake in docs.
* Small fix for label computation.
* Allow uppercase alphabet + add fuzzy_description.
* Minor cleanup.
* Use more standard alphabet (without j/k).
* Fixed docs after previous commit.
* Added key assignments to docs.
* Apply suggestions from code review (2 remaining)
* Updated arcording to feedback (added tests).
* Update docs (1 thing left to do)
* Added version details to the key table.
---------
Co-authored-by: Wez Furlong <wez@wezfurlong.org>
Allows prompting the user to select from a list and then
triggering some action on the selected item.
This is the guts of the launcher menu hooked up to user-supplied
arbitrary entries.
* Update ssh_backend.md
* Update normalize_output_to_unicode_nfc.md
* Update strikethrough_position.md
* Update underline_position.md
* Update underline_thickness.md
* Fix lua config docs titles to be formatted as inline code
* Mention how suggested alphabet for quick select is choosen
* Mention update-status and update-right-status for status_update_interval
* Fix docs for all keyassignments to be formatted as inline code
* Fix Lua object index titles
* Fix titles of `wezterm.*` module index pages
* Fix title of `Color` object & `wezterm.color` functions
We reduce titles from h2 to h1 because mkdocs defaults the page title to
the page file name if no h1 header is found.
* Unify title of all object methods
* Add index page for Gui events
Nudge new users towards using this style:
```lua
local config = {}
config.color_scheme = 'Batman'
return config
```
and surface how to write lua modules closer to the main section
on config files. In that lua modules section, nudge towards using
a convention similar to that of the plugin spec described in
this commit: e4ae8a844d