fix(search): give the in-place search a usable shortcut
kitty_mod+shift+f is the same physical key as kitty_mod+f, and move_window_forward accepts the shifted fallback, so both definitions resolved to the same trigger and the last one won: Ctrl+Shift+F moved the window instead of opening the prompt, and the search had no shortcut at all. It now sits on kitty_mod+alt+s, which no other default action claims. Fixes #45
This commit is contained in:
6 files changed
+25
-5
No files matched your search
@@ -4159,13 +4159,14 @@ map('Search the scrollback within a pager', 'search_scrollback --allow-fallback=
|
||||
|
||||
map(
|
||||
'Search and highlight the scrollback in place',
|
||||
'search_scrollback_prompt kitty_mod+shift+f search_scrollback_prompt',
|
||||
'search_scrollback_prompt kitty_mod+alt+s search_scrollback_prompt',
|
||||
long_text="""
|
||||
Search the scrollback without opening a pager. Every match is highlighted in
|
||||
the scrollback and the ``[current/total]`` counter is shown in the window title.
|
||||
Prefix the query with ``\\c`` to match case sensitively and with ``\\r`` to use
|
||||
a regular expression. While a search is active, :kbd:`n` and :kbd:`N` jump to
|
||||
the next and previous match and :kbd:`Escape` ends the search.
|
||||
the next and previous match and :kbd:`Escape` ends the search. The default
|
||||
binding is :kbd:`kitty_mod+alt+s` (:kbd:`Ctrl+Shift+Alt+S` by default).
|
||||
|
||||
The :ac:`scrollback_search_next`, :ac:`scrollback_search_prev` and
|
||||
:ac:`clear_scrollback_search` actions can be mapped to other keys.
|
||||
|
||||
Generated
+1
-1
@@ -937,7 +937,7 @@ defaults.map = [
|
||||
# search_scrollback
|
||||
KeyDefinition(trigger=SingleKey(mods=256, key=47), definition='search_scrollback'),
|
||||
# search_scrollback_prompt
|
||||
KeyDefinition(trigger=SingleKey(mods=257, key=102), definition='search_scrollback_prompt'),
|
||||
KeyDefinition(trigger=SingleKey(mods=258, key=115), definition='search_scrollback_prompt'),
|
||||
# new_window
|
||||
KeyDefinition(trigger=SingleKey(mods=256, key=57345), definition='new_window'),
|
||||
# new_os_window
|
||||
|
||||
Reference in new issue
Block a user