feat(shortcuts): add a leader key tree and palette remapping
Expose the multi-key mappings starting at the configured leader key in a which-key panel, so that continuations are discoverable as soon as the prefix is pressed. Both the panel and the command palette read the same structured mapping data, and the palette can now write a new mapping for the selected action.
This commit is contained in:
10 files changed
+418
-13
No files matched your search
@@ -3790,6 +3790,22 @@ this option to alter all default shortcuts that use :opt:`kitty_mod`.
|
||||
""",
|
||||
)
|
||||
|
||||
opt(
|
||||
'leader',
|
||||
'ctrl+space',
|
||||
long_text="""
|
||||
The key that opens the leader key tree. When you press it and there are
|
||||
multi-key mappings starting with this key (for example
|
||||
:code:`map ctrl+space>n new_os_window`), kitty displays every possible
|
||||
continuation with its action and help text, without waiting for a timeout. See
|
||||
:ref:`leader_keymap` for details.
|
||||
|
||||
Set it to :code:`none` to disable the leader key. Only mappings whose first key
|
||||
is the leader key are affected, a leader key with no multi-key mapping behind it
|
||||
is passed through to the program running in kitty.
|
||||
""",
|
||||
)
|
||||
|
||||
opt(
|
||||
'remap_modifiers',
|
||||
'',
|
||||
|
||||
Reference in new issue
Block a user