feat(options): add a default shortcut for the file manager
The documented Ctrl+Shift+E binding only existed in a hand-written config, so the file manager was unreachable without adding it manually. Bind the docked panel by default and regenerate the option types. The binding takes the key over from open_url, as noted in the changelog.
This commit is contained in:
5 files changed
+26
-5
No files matched your search
@@ -4643,6 +4643,15 @@ map('Show documentation', 'show_kitty_doc kitty_mod+f1 show_kitty_doc overview')
|
||||
|
||||
map('Command palette', 'command_palette kitty_mod+f3 command_palette')
|
||||
|
||||
map(
|
||||
'File manager',
|
||||
'file_manager ctrl+shift+e launch --type=window-dock --dock-edge=left --dock-size=60 kitten file-manager',
|
||||
long_text="""
|
||||
Open the built-in file manager in a dock at the left edge of the current window.
|
||||
It can also be launched manually with :code:`kitten file-manager`.
|
||||
""",
|
||||
)
|
||||
|
||||
map(
|
||||
'Toggle fullscreen',
|
||||
'toggle_fullscreen kitty_mod+f11 toggle_fullscreen',
|
||||
|
||||
Generated
+2
@@ -1028,6 +1028,8 @@ defaults.map = [
|
||||
KeyDefinition(trigger=SingleKey(mods=256, key=57364), definition='show_kitty_doc overview'),
|
||||
# command_palette
|
||||
KeyDefinition(trigger=SingleKey(mods=256, key=57366), definition='command_palette'),
|
||||
# file_manager
|
||||
KeyDefinition(trigger=SingleKey(mods=5, key=101), definition='launch --type=window-dock --dock-edge=right --dock-size=60 kitten file-manager'),
|
||||
# toggle_fullscreen
|
||||
KeyDefinition(trigger=SingleKey(mods=256, key=57374), definition='toggle_fullscreen'),
|
||||
# toggle_maximized
|
||||
|
||||
Reference in new issue
Block a user