mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-31 06:18:17 +00:00
A new default shortcut to show the kitty documentation
This commit is contained in:
parent
44ccdd36d6
commit
39434fb1f6
3 changed files with 6 additions and 1 deletions
|
|
@ -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`.
|
||||
|
|
|
|||
|
|
@ -3806,6 +3806,9 @@ shortcuts. For a full description see :doc:`hints kitten </kittens/hints>`.
|
|||
# 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',
|
||||
)
|
||||
|
|
|
|||
2
kitty/options/types.py
generated
2
kitty/options/types.py
generated
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue