A new default shortcut to show the kitty documentation

This commit is contained in:
Kovid Goyal
2022-08-20 13:55:10 +05:30
parent 44ccdd36d6
commit 39434fb1f6
3 changed files with 6 additions and 1 deletions

View File

@@ -44,7 +44,7 @@ Detailed list of changes
- A new option :opt:`modify_font` to adjust various font metrics like underlines, cell sizes etc. (:pull:`5265`) - A new option :opt:`modify_font` to adjust various font metrics like underlines, cell sizes etc. (:pull:`5265`)
- A new mappable action :ac:`show_kitty_doc` to display the kitty docs in a browser - A new shortcut :sc:`show_kitty_doc` to display the kitty docs in a browser
- Graphics protocol: Only delete temp files if they have the string - Graphics protocol: Only delete temp files if they have the string
:code:`tty-graphics-protocol` in their file paths. This prevents deletion of arbitrary files in :file:`/tmp`. :code:`tty-graphics-protocol` in their file paths. This prevents deletion of arbitrary files in :file:`/tmp`.

View File

@@ -3806,6 +3806,9 @@ shortcuts. For a full description see :doc:`hints kitten </kittens/hints>`.
# shortcuts.misc {{{ # shortcuts.misc {{{
agr('shortcuts.misc', 'Miscellaneous') agr('shortcuts.misc', 'Miscellaneous')
map('Show documentation',
'show_kitty_doc kitty_mod+f1 show_kitty_doc overview')
map('Toggle fullscreen', map('Toggle fullscreen',
'toggle_fullscreen kitty_mod+f11 toggle_fullscreen', 'toggle_fullscreen kitty_mod+f11 toggle_fullscreen',
) )

View File

@@ -861,6 +861,8 @@ defaults.map = [
KeyDefinition(is_sequence=True, trigger=SingleKey(mods=256, key=112), rest=(SingleKey(key=110),), definition='kitten hints --type linenum'), # noqa KeyDefinition(is_sequence=True, trigger=SingleKey(mods=256, key=112), rest=(SingleKey(key=110),), definition='kitten hints --type linenum'), # noqa
# open_selected_hyperlink # open_selected_hyperlink
KeyDefinition(is_sequence=True, trigger=SingleKey(mods=256, key=112), rest=(SingleKey(key=121),), definition='kitten hints --type hyperlink'), # noqa KeyDefinition(is_sequence=True, trigger=SingleKey(mods=256, key=112), rest=(SingleKey(key=121),), definition='kitten hints --type hyperlink'), # noqa
# show_kitty_doc
KeyDefinition(trigger=SingleKey(mods=256, key=57364), definition='show_kitty_doc overview'), # noqa
# toggle_fullscreen # toggle_fullscreen
KeyDefinition(trigger=SingleKey(mods=256, key=57374), definition='toggle_fullscreen'), # noqa KeyDefinition(trigger=SingleKey(mods=256, key=57374), definition='toggle_fullscreen'), # noqa
# toggle_maximized # toggle_maximized