diff options
author | Christian Duerr <contact@christianduerr.com> | 2020-07-15 21:27:32 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-15 21:27:32 +0000 |
commit | 142f84efb955a9fa59f4205ec3a6db3964c5f433 (patch) | |
tree | 450d1f210dd961de872f8105cdb4290a13194d97 /alacritty.yml | |
parent | d868848ef162ce1d2d5e41b690a592199e9f652d (diff) | |
download | alacritty-142f84efb955a9fa59f4205ec3a6db3964c5f433.tar.gz alacritty-142f84efb955a9fa59f4205ec3a6db3964c5f433.zip |
Add support for searching without vi mode
This implements search without vi mode by using the selection to track
the active search match and advancing it on user input. The keys to go
to the next or previous match are not configurable and are bound to
enter and shift enter based on Firefox's behavior.
Fixes #3937.
Diffstat (limited to 'alacritty.yml')
-rw-r--r-- | alacritty.yml | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/alacritty.yml b/alacritty.yml index def39e25..7055cf4f 100644 --- a/alacritty.yml +++ b/alacritty.yml @@ -145,7 +145,7 @@ # Glyph offset determines the locations of the glyphs within their cells with # the default being at the bottom. Increasing `x` moves the glyph to the right, - # increasing `y` moves the glyph upwards. + # increasing `y` moves the glyph upward. #glyph_offset: # x: 0 # y: 0 @@ -480,8 +480,8 @@ # - `action`: Execute a predefined action # # - ToggleViMode -# - Search -# - SearchReverse +# - SearchForward +# - SearchBackward # - Copy # - Paste # - PasteSelection @@ -636,14 +636,16 @@ #- { key: W, mods: Shift, mode: Vi, action: WordRight } #- { key: E, mods: Shift, mode: Vi, action: WordRightEnd } #- { key: Key5, mods: Shift, mode: Vi, action: Bracket } - #- { key: Slash, mode: Vi, action: Search } - #- { key: Slash, mods: Shift, mode: Vi, action: SearchReverse } + #- { key: Slash, mode: Vi, action: SearchForward } + #- { key: Slash, mods: Shift, mode: Vi, action: SearchBackward } #- { key: N, mode: Vi, action: SearchNext } #- { key: N, mods: Shift, mode: Vi, action: SearchPrevious } # (Windows, Linux, and BSD only) #- { key: V, mods: Control|Shift, action: Paste } #- { key: C, mods: Control|Shift, action: Copy } + #- { key: F, mods: Control|Shift, action: SearchForward } + #- { key: B, mods: Control|Shift, action: SearchBackward } #- { key: C, mods: Control|Shift, mode: Vi, action: ClearSelection } #- { key: Insert, mods: Shift, action: PasteSelection } #- { key: Key0, mods: Control, action: ResetFontSize } @@ -671,6 +673,8 @@ #- { key: W, mods: Command, action: Quit } #- { key: N, mods: Command, action: SpawnNewInstance } #- { key: F, mods: Command|Control, action: ToggleFullscreen } + #- { key: F, mods: Command, action: SearchForward } + #- { key: B, mods: Command, action: SearchBackward } #debug: # Display the time it takes to redraw each frame. |