mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-12 10:47:05 +02:00
Document the new command palette
This commit is contained in:
@@ -3836,8 +3836,9 @@ Some quick examples to illustrate common tasks::
|
||||
# multi-key shortcuts
|
||||
map ctrl+x>ctrl+y>z action
|
||||
|
||||
The full list of actions that can be mapped to key presses is available
|
||||
:doc:`here </actions>`.
|
||||
You can browse and trigger these actions by pressing :sc:`command_palette` to
|
||||
run the command palette. The full list of actions that can be mapped to
|
||||
key presses is available :doc:`here </actions>`.
|
||||
''')
|
||||
|
||||
opt('kitty_mod', 'ctrl+shift',
|
||||
@@ -4532,6 +4533,9 @@ agr('shortcuts.misc', 'Miscellaneous')
|
||||
map('Show documentation',
|
||||
'show_kitty_doc kitty_mod+f1 show_kitty_doc overview')
|
||||
|
||||
map('Command palette',
|
||||
'command_palette kitty_mod+f3 command_palette')
|
||||
|
||||
map('Toggle fullscreen',
|
||||
'toggle_fullscreen kitty_mod+f11 toggle_fullscreen',
|
||||
)
|
||||
|
||||
2
kitty/options/types.py
generated
2
kitty/options/types.py
generated
@@ -959,6 +959,8 @@ defaults.map = [
|
||||
KeyDefinition(is_sequence=True, trigger=SingleKey(mods=256, key=112), rest=(SingleKey(key=121),), definition='kitten hints --type hyperlink'),
|
||||
# show_kitty_doc
|
||||
KeyDefinition(trigger=SingleKey(mods=256, key=57364), definition='show_kitty_doc overview'),
|
||||
# command_palette
|
||||
KeyDefinition(trigger=SingleKey(mods=256, key=57366), definition='command_palette'),
|
||||
# toggle_fullscreen
|
||||
KeyDefinition(trigger=SingleKey(mods=256, key=57374), definition='toggle_fullscreen'),
|
||||
# toggle_maximized
|
||||
|
||||
@@ -167,7 +167,6 @@ def detach_tab_parse(func: str, rest: str) -> FuncArgsType:
|
||||
@func_with_args(
|
||||
'set_background_opacity', 'goto_layout', 'toggle_layout', 'toggle_tab', 'kitty_shell', 'show_kitty_doc',
|
||||
'set_tab_title', 'push_keyboard_mode', 'dump_lines_with_attrs', 'set_window_title', 'simulate_color_scheme_preference_change',
|
||||
'command_palette',
|
||||
)
|
||||
def simple_parse(func: str, rest: str) -> FuncArgsType:
|
||||
return func, (rest,)
|
||||
|
||||
Reference in New Issue
Block a user