diff --git a/docs/changelog.rst b/docs/changelog.rst index 10b975f3f..0c753f436 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -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 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 :code:`tty-graphics-protocol` in their file paths. This prevents deletion of arbitrary files in :file:`/tmp`. diff --git a/kitty/options/definition.py b/kitty/options/definition.py index b4ab721a0..6c5a5c486 100644 --- a/kitty/options/definition.py +++ b/kitty/options/definition.py @@ -3806,6 +3806,9 @@ shortcuts. For a full description see :doc:`hints kitten `. # shortcuts.misc {{{ agr('shortcuts.misc', 'Miscellaneous') +map('Show documentation', + 'show_kitty_doc kitty_mod+f1 show_kitty_doc overview') + map('Toggle fullscreen', 'toggle_fullscreen kitty_mod+f11 toggle_fullscreen', ) diff --git a/kitty/options/types.py b/kitty/options/types.py index 919ff2455..1c2f22c1a 100644 --- a/kitty/options/types.py +++ b/kitty/options/types.py @@ -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 # open_selected_hyperlink 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 KeyDefinition(trigger=SingleKey(mods=256, key=57374), definition='toggle_fullscreen'), # noqa # toggle_maximized