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
Generated
+3
@@ -1094,6 +1094,9 @@ class Parser:
|
||||
def kitty_mod(self, val: str, ans: dict[str, typing.Any]) -> None:
|
||||
ans['kitty_mod'] = to_modifiers(val)
|
||||
|
||||
def leader(self, val: str, ans: dict[str, typing.Any]) -> None:
|
||||
ans['leader'] = str(val).strip()
|
||||
|
||||
def linux_bell_theme(self, val: str, ans: dict[str, typing.Any]) -> None:
|
||||
ans['linux_bell_theme'] = str(val)
|
||||
|
||||
|
||||
Reference in new issue
Block a user