fix(clipboard): make the default history shortcuts effective
kitty_mod already includes shift, so kitty_mod+shift+v resolved to the same chord as paste_from_clipboard and the mapping did nothing. Use the free alt combinations and regenerate the option types so the bindings are part of the default configuration.
This commit is contained in:
4 files changed
+12
-7
No files matched your search
+4
-4
@@ -285,14 +285,14 @@ written by a program that marks its request as private (by passing a ``pw``
|
||||
field in an *OSC 5522* write request) is never recorded, and neither is anything
|
||||
copied to the primary selection. Images and other non-text data are ignored.
|
||||
|
||||
Both actions have a default shortcut: :kbd:`kitty_mod+shift+v` opens the
|
||||
history and :kbd:`kitty_mod+shift+f` asks for a fuzzy query before showing the
|
||||
Both actions have a default shortcut: :kbd:`kitty_mod+alt+v` opens the
|
||||
history and :kbd:`kitty_mod+alt+f` asks for a fuzzy query before showing the
|
||||
list. To use different keys, add for example to :file:`kitty.conf`:
|
||||
|
||||
.. code-block:: conf
|
||||
|
||||
map kitty_mod+shift+h paste_from_clipboard_history
|
||||
map kitty_mod+shift+g search_clipboard_history
|
||||
map kitty_mod+alt+h paste_from_clipboard_history
|
||||
map kitty_mod+alt+g search_clipboard_history
|
||||
|
||||
The size of the history is fixed at 50 entries, 64 KiB per entry and 1 MiB in
|
||||
total, so that a few large copies cannot use an unbounded amount of memory.
|
||||
@@ -3958,11 +3958,11 @@ map(
|
||||
|
||||
map(
|
||||
'Paste from clipboard history',
|
||||
'paste_from_clipboard_history --allow-fallback=shifted,ascii kitty_mod+shift+v paste_from_clipboard_history',
|
||||
'paste_from_clipboard_history --allow-fallback=shifted,ascii kitty_mod+alt+v paste_from_clipboard_history',
|
||||
)
|
||||
map(
|
||||
'Search the clipboard history',
|
||||
'search_clipboard_history --allow-fallback=shifted,ascii kitty_mod+shift+f search_clipboard_history',
|
||||
'search_clipboard_history --allow-fallback=shifted,ascii kitty_mod+alt+f search_clipboard_history',
|
||||
)
|
||||
|
||||
map(
|
||||
|
||||
Generated
+1
@@ -4,6 +4,7 @@
|
||||
#include "to-c.h"
|
||||
|
||||
|
||||
|
||||
static void
|
||||
convert_from_python_font_size(PyObject *val, Options *opts) {
|
||||
opts->font_size = PyFloat_AsDouble(val);
|
||||
|
||||
Generated
+5
-1
@@ -902,6 +902,10 @@ defaults.map = [
|
||||
KeyDefinition(trigger=SingleKey(mods=256, key=115), options=KeyMapOptions(when_focus_on='', new_mode='', mode='', on_unknown='beep', on_action='keep', timeout=None, allow_fallback=(KeyFallbackType.shifted, KeyFallbackType.alternate)), definition='paste_from_selection'),
|
||||
# paste_from_selection
|
||||
KeyDefinition(trigger=SingleKey(mods=1, key=57348), definition='paste_from_selection'),
|
||||
# paste_from_clipboard_history
|
||||
KeyDefinition(trigger=SingleKey(mods=258, key=118), options=KeyMapOptions(when_focus_on='', new_mode='', mode='', on_unknown='beep', on_action='keep', timeout=None, allow_fallback=(KeyFallbackType.shifted, KeyFallbackType.alternate)), definition='paste_from_clipboard_history'),
|
||||
# search_clipboard_history
|
||||
KeyDefinition(trigger=SingleKey(mods=258, key=102), options=KeyMapOptions(when_focus_on='', new_mode='', mode='', on_unknown='beep', on_action='keep', timeout=None, allow_fallback=(KeyFallbackType.shifted, KeyFallbackType.alternate)), definition='search_clipboard_history'),
|
||||
# pass_selection_to_program
|
||||
KeyDefinition(trigger=SingleKey(mods=256, key=111), options=KeyMapOptions(when_focus_on='', new_mode='', mode='', on_unknown='beep', on_action='keep', timeout=None, allow_fallback=(KeyFallbackType.shifted, KeyFallbackType.alternate)), definition='pass_selection_to_program'),
|
||||
# scroll_line_up
|
||||
@@ -1029,7 +1033,7 @@ defaults.map = [
|
||||
# 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'),
|
||||
KeyDefinition(trigger=SingleKey(mods=5, key=101), definition='launch --type=window-dock --dock-edge=left --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