docs(mapping): document the leader tree and palette remapping
This commit is contained in:
1 parent
05621aebd2
commit
1d6911c476
2 files changed
+76
No files matched your search
@@ -102,12 +102,38 @@ The following keys are available while the command palette is open:
|
||||
- Jump to the last result
|
||||
* - :kbd:`Backspace`
|
||||
- Delete the last character from the query
|
||||
* - :kbd:`Ctrl+R`
|
||||
- Remap the selected action by pressing its new shortcut
|
||||
* - :kbd:`F12`
|
||||
- Toggle display of unmapped actions
|
||||
* - Mouse click
|
||||
- Select and run the clicked action
|
||||
|
||||
|
||||
Remapping a shortcut
|
||||
----------------------
|
||||
|
||||
Each row shows the shortcut bound to the action in its key column. Select an
|
||||
action and press :kbd:`Ctrl+R`, then press the new shortcut. The palette appends
|
||||
the corresponding :code:`map` directive to :file:`kitty.conf` and reloads the
|
||||
configuration, so the change takes effect immediately without restarting
|
||||
|kitty|. Existing lines are left untouched and the new mapping is appended, so
|
||||
the most recent mapping wins. The read-only shortcuts panel does not offer
|
||||
remapping, and mouse bindings cannot be remapped this way.
|
||||
|
||||
|
||||
Leader key tree
|
||||
-----------------
|
||||
|
||||
When the :opt:`leader` option is set and a multi-key mapping starts with the
|
||||
leader key, pressing it opens the palette in which-key mode. Only the
|
||||
continuations available under the leader prefix are listed, with their help
|
||||
text. Press the key shown in the key column to run that action immediately, or
|
||||
use the arrow keys and :kbd:`Enter`. This mode does not remap or run unmapped
|
||||
actions, it is purely a keyboard tree. See :ref:`leader_keymap` for the
|
||||
configuration example.
|
||||
|
||||
|
||||
Unmapped actions
|
||||
------------------
|
||||
|
||||
|
||||
Reference in new issue
Block a user