diff options
author | Christian Duerr <contact@christianduerr.com> | 2020-12-20 04:27:08 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-20 04:27:08 +0000 |
commit | f016a209b4ac1bfa6625b9d30e6f69bc91bc7545 (patch) | |
tree | f3808e085b53f84203c322bdd408746a8c9dde1d /alacritty.yml | |
parent | 8a7f8c9d3eca214578439da417d37395971a711d (diff) | |
download | alacritty-f016a209b4ac1bfa6625b9d30e6f69bc91bc7545.tar.gz alacritty-f016a209b4ac1bfa6625b9d30e6f69bc91bc7545.zip |
Add search history support
This adds a history to the regex search limited to at most 255 entries.
Whenever a search is either confirmed or cancelled, the last regex is
entered into the history and can be accessed when a new search is
started.
This should help users recover complicated search regexes after
accidentally discarding them, or handle repeated searches with the same
regexes.
Fixes #4095.
Diffstat (limited to 'alacritty.yml')
-rw-r--r-- | alacritty.yml | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/alacritty.yml b/alacritty.yml index 7e36928b..72fbcf8c 100644 --- a/alacritty.yml +++ b/alacritty.yml @@ -622,6 +622,10 @@ # Reset the search regex. # - SearchDeleteWord # Delete the last word in the search regex. +# - SearchHistoryPrevious +# Go to the previous regex in the search history. +# - SearchHistoryNext +# Go to the next regex in the search history. # # - macOS exclusive actions: # - ToggleSimpleFullscreen @@ -736,12 +740,16 @@ #- { key: N, mods: Shift, mode: Vi|~Search, action: SearchPrevious } # Search Mode - #- { key: Return, mode: Search|Vi, action: SearchConfirm } - #- { key: Escape, mode: Search, action: SearchCancel } - #- { key: U, mods: Control, mode: Search, action: SearchClear } - #- { key: W, mods: Control, mode: Search, action: SearchDeleteWord } - #- { key: Return, mode: Search|~Vi, action: SearchFocusNext } - #- { key: Return, mods: Shift, mode: Search|~Vi, action: SearchFocusPrevious } + #- { key: Return, mode: Search|Vi, action: SearchConfirm } + #- { key: Escape, mode: Search, action: SearchCancel } + #- { key: U, mods: Control, mode: Search, action: SearchClear } + #- { key: W, mods: Control, mode: Search, action: SearchDeleteWord } + #- { key: P, mods: Control, mode: Search, action: SearchHistoryPrevious } + #- { key: N, mods: Control, mode: Search, action: SearchHistoryNext } + #- { key: Up, mode: Search, action: SearchHistoryPrevious } + #- { key: Down, mode: Search, action: SearchHistoryNext } + #- { key: Return, mode: Search|~Vi, action: SearchFocusNext } + #- { key: Return, mods: Shift, mode: Search|~Vi, action: SearchFocusPrevious } # (Windows, Linux, and BSD only) #- { key: V, mods: Control|Shift, mode: ~Vi, action: Paste } |