summaryrefslogtreecommitdiff
path: root/alacritty.yml
diff options
context:
space:
mode:
authorChristian Duerr <contact@christianduerr.com>2020-12-19 04:07:20 +0000
committerGitHub <noreply@github.com>2020-12-19 04:07:20 +0000
commit8a7f8c9d3eca214578439da417d37395971a711d (patch)
tree38040e9f123a8835794cb19557483eeeccd27781 /alacritty.yml
parent116faba7c607f1b2cb56c390d44b33a52603f642 (diff)
downloadalacritty-8a7f8c9d3eca214578439da417d37395971a711d.tar.gz
alacritty-8a7f8c9d3eca214578439da417d37395971a711d.zip
Add separate mode for search bindings
Diffstat (limited to 'alacritty.yml')
-rw-r--r--alacritty.yml193
1 files changed, 107 insertions, 86 deletions
diff --git a/alacritty.yml b/alacritty.yml
index 2f2e5dc9..7e36928b 100644
--- a/alacritty.yml
+++ b/alacritty.yml
@@ -611,6 +611,18 @@
# - SearchEnd
# End of the match to the right of the vi mode cursor.
#
+# - Search mode exclusive actions:
+# - SearchFocusNext
+# Move the focus to the next search match.
+# - SearchFocusPrevious
+# Move the focus to the previous search match.
+# - SearchConfirm
+# - SearchCancel
+# - SearchClear
+# Reset the search regex.
+# - SearchDeleteWord
+# Delete the last word in the search regex.
+#
# - macOS exclusive actions:
# - ToggleSimpleFullscreen
# Enter fullscreen without occupying another space.
@@ -650,6 +662,7 @@
#
# - AppCursor
# - AppKeypad
+# - Search
# - Alt
# - Vi
#
@@ -664,101 +677,109 @@
# If the same trigger is assigned to multiple actions, all of them are executed
# in the order they were defined in.
#key_bindings:
- #- { key: Paste, action: Paste }
- #- { key: Copy, action: Copy }
- #- { key: L, mods: Control, action: ClearLogNotice }
- #- { key: L, mods: Control, mode: ~Vi, chars: "\x0c" }
- #- { key: PageUp, mods: Shift, mode: ~Alt, action: ScrollPageUp, }
- #- { key: PageDown, mods: Shift, mode: ~Alt, action: ScrollPageDown }
- #- { key: Home, mods: Shift, mode: ~Alt, action: ScrollToTop, }
- #- { key: End, mods: Shift, mode: ~Alt, action: ScrollToBottom }
+ #- { key: Paste, action: Paste }
+ #- { key: Copy, action: Copy }
+ #- { key: L, mods: Control, action: ClearLogNotice }
+ #- { key: L, mods: Control, mode: ~Vi|~Search, chars: "\x0c" }
+ #- { key: PageUp, mods: Shift, mode: ~Alt, action: ScrollPageUp, }
+ #- { key: PageDown, mods: Shift, mode: ~Alt, action: ScrollPageDown }
+ #- { key: Home, mods: Shift, mode: ~Alt, action: ScrollToTop, }
+ #- { key: End, mods: Shift, mode: ~Alt, action: ScrollToBottom }
# Vi Mode
- #- { key: Space, mods: Shift|Control, mode: Vi, action: ScrollToBottom }
- #- { key: Space, mods: Shift|Control, action: ToggleViMode }
- #- { key: Escape, mode: Vi, action: ClearSelection }
- #- { key: I, mode: Vi, action: ScrollToBottom }
- #- { key: I, mode: Vi, action: ToggleViMode }
- #- { key: C, mods: Control, mode: Vi, action: ToggleViMode }
- #- { key: Y, mods: Control, mode: Vi, action: ScrollLineUp }
- #- { key: E, mods: Control, mode: Vi, action: ScrollLineDown }
- #- { key: G, mode: Vi, action: ScrollToTop }
- #- { key: G, mods: Shift, mode: Vi, action: ScrollToBottom }
- #- { key: B, mods: Control, mode: Vi, action: ScrollPageUp }
- #- { key: F, mods: Control, mode: Vi, action: ScrollPageDown }
- #- { key: U, mods: Control, mode: Vi, action: ScrollHalfPageUp }
- #- { key: D, mods: Control, mode: Vi, action: ScrollHalfPageDown }
- #- { key: Y, mode: Vi, action: Copy }
- #- { key: Y, mode: Vi, action: ClearSelection }
- #- { key: Copy, mode: Vi, action: ClearSelection }
- #- { key: V, mode: Vi, action: ToggleNormalSelection }
- #- { key: V, mods: Shift, mode: Vi, action: ToggleLineSelection }
- #- { key: V, mods: Control, mode: Vi, action: ToggleBlockSelection }
- #- { key: V, mods: Alt, mode: Vi, action: ToggleSemanticSelection }
- #- { key: Return, mode: Vi, action: Open }
- #- { key: K, mode: Vi, action: Up }
- #- { key: J, mode: Vi, action: Down }
- #- { key: H, mode: Vi, action: Left }
- #- { key: L, mode: Vi, action: Right }
- #- { key: Up, mode: Vi, action: Up }
- #- { key: Down, mode: Vi, action: Down }
- #- { key: Left, mode: Vi, action: Left }
- #- { key: Right, mode: Vi, action: Right }
- #- { key: Key0, mode: Vi, action: First }
- #- { key: Key4, mods: Shift, mode: Vi, action: Last }
- #- { key: Key6, mods: Shift, mode: Vi, action: FirstOccupied }
- #- { key: H, mods: Shift, mode: Vi, action: High }
- #- { key: M, mods: Shift, mode: Vi, action: Middle }
- #- { key: L, mods: Shift, mode: Vi, action: Low }
- #- { key: B, mode: Vi, action: SemanticLeft }
- #- { key: W, mode: Vi, action: SemanticRight }
- #- { key: E, mode: Vi, action: SemanticRightEnd }
- #- { key: B, mods: Shift, mode: Vi, action: WordLeft }
- #- { 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: SearchForward }
- #- { key: Slash, mods: Shift, mode: Vi, action: SearchBackward }
- #- { key: N, mode: Vi, action: SearchNext }
- #- { key: N, mods: Shift, mode: Vi, action: SearchPrevious }
+ #- { key: Space, mods: Shift|Control, mode: Vi|~Search, action: ScrollToBottom }
+ #- { key: Space, mods: Shift|Control, mode: ~Search, action: ToggleViMode }
+ #- { key: Escape, mode: Vi|~Search, action: ClearSelection }
+ #- { key: I, mode: Vi|~Search, action: ScrollToBottom }
+ #- { key: I, mode: Vi|~Search, action: ToggleViMode }
+ #- { key: C, mods: Control, mode: Vi|~Search, action: ToggleViMode }
+ #- { key: Y, mods: Control, mode: Vi|~Search, action: ScrollLineUp }
+ #- { key: E, mods: Control, mode: Vi|~Search, action: ScrollLineDown }
+ #- { key: G, mode: Vi|~Search, action: ScrollToTop }
+ #- { key: G, mods: Shift, mode: Vi|~Search, action: ScrollToBottom }
+ #- { key: B, mods: Control, mode: Vi|~Search, action: ScrollPageUp }
+ #- { key: F, mods: Control, mode: Vi|~Search, action: ScrollPageDown }
+ #- { key: U, mods: Control, mode: Vi|~Search, action: ScrollHalfPageUp }
+ #- { key: D, mods: Control, mode: Vi|~Search, action: ScrollHalfPageDown }
+ #- { key: Y, mode: Vi|~Search, action: Copy }
+ #- { key: Y, mode: Vi|~Search, action: ClearSelection }
+ #- { key: Copy, mode: Vi|~Search, action: ClearSelection }
+ #- { key: V, mode: Vi|~Search, action: ToggleNormalSelection }
+ #- { key: V, mods: Shift, mode: Vi|~Search, action: ToggleLineSelection }
+ #- { key: V, mods: Control, mode: Vi|~Search, action: ToggleBlockSelection }
+ #- { key: V, mods: Alt, mode: Vi|~Search, action: ToggleSemanticSelection }
+ #- { key: Return, mode: Vi|~Search, action: Open }
+ #- { key: K, mode: Vi|~Search, action: Up }
+ #- { key: J, mode: Vi|~Search, action: Down }
+ #- { key: H, mode: Vi|~Search, action: Left }
+ #- { key: L, mode: Vi|~Search, action: Right }
+ #- { key: Up, mode: Vi|~Search, action: Up }
+ #- { key: Down, mode: Vi|~Search, action: Down }
+ #- { key: Left, mode: Vi|~Search, action: Left }
+ #- { key: Right, mode: Vi|~Search, action: Right }
+ #- { key: Key0, mode: Vi|~Search, action: First }
+ #- { key: Key4, mods: Shift, mode: Vi|~Search, action: Last }
+ #- { key: Key6, mods: Shift, mode: Vi|~Search, action: FirstOccupied }
+ #- { key: H, mods: Shift, mode: Vi|~Search, action: High }
+ #- { key: M, mods: Shift, mode: Vi|~Search, action: Middle }
+ #- { key: L, mods: Shift, mode: Vi|~Search, action: Low }
+ #- { key: B, mode: Vi|~Search, action: SemanticLeft }
+ #- { key: W, mode: Vi|~Search, action: SemanticRight }
+ #- { key: E, mode: Vi|~Search, action: SemanticRightEnd }
+ #- { key: B, mods: Shift, mode: Vi|~Search, action: WordLeft }
+ #- { key: W, mods: Shift, mode: Vi|~Search, action: WordRight }
+ #- { key: E, mods: Shift, mode: Vi|~Search, action: WordRightEnd }
+ #- { key: Key5, mods: Shift, mode: Vi|~Search, action: Bracket }
+ #- { key: Slash, mode: Vi|~Search, action: SearchForward }
+ #- { key: Slash, mods: Shift, mode: Vi|~Search, action: SearchBackward }
+ #- { key: N, mode: Vi|~Search, action: SearchNext }
+ #- { 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 }
# (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 }
- #- { key: Equals, mods: Control, action: IncreaseFontSize }
- #- { key: Plus, mods: Control, action: IncreaseFontSize }
- #- { key: NumpadAdd, mods: Control, action: IncreaseFontSize }
- #- { key: Minus, mods: Control, action: DecreaseFontSize }
- #- { key: NumpadSubtract, mods: Control, action: DecreaseFontSize }
+ #- { key: V, mods: Control|Shift, mode: ~Vi, action: Paste }
+ #- { key: C, mods: Control|Shift, action: Copy }
+ #- { key: F, mods: Control|Shift, mode: ~Search, action: SearchForward }
+ #- { key: B, mods: Control|Shift, mode: ~Search, action: SearchBackward }
+ #- { key: C, mods: Control|Shift, mode: Vi|~Search, action: ClearSelection }
+ #- { key: Insert, mods: Shift, action: PasteSelection }
+ #- { key: Key0, mods: Control, action: ResetFontSize }
+ #- { key: Equals, mods: Control, action: IncreaseFontSize }
+ #- { key: Plus, mods: Control, action: IncreaseFontSize }
+ #- { key: NumpadAdd, mods: Control, action: IncreaseFontSize }
+ #- { key: Minus, mods: Control, action: DecreaseFontSize }
+ #- { key: NumpadSubtract, mods: Control, action: DecreaseFontSize }
# (Windows only)
#- { key: Return, mods: Alt, action: ToggleFullscreen }
# (macOS only)
- #- { key: K, mods: Command, mode: ~Vi, chars: "\x0c" }
- #- { key: Key0, mods: Command, action: ResetFontSize }
- #- { key: Equals, mods: Command, action: IncreaseFontSize }
- #- { key: Plus, mods: Command, action: IncreaseFontSize }
- #- { key: NumpadAdd, mods: Command, action: IncreaseFontSize }
- #- { key: Minus, mods: Command, action: DecreaseFontSize }
- #- { key: NumpadSubtract, mods: Command, action: DecreaseFontSize }
- #- { key: K, mods: Command, action: ClearHistory }
- #- { key: V, mods: Command, action: Paste }
- #- { key: C, mods: Command, action: Copy }
- #- { key: C, mods: Command, mode: Vi, action: ClearSelection }
- #- { key: H, mods: Command, action: Hide }
- #- { key: M, mods: Command, action: Minimize }
- #- { key: Q, mods: Command, action: Quit }
- #- { 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 }
+ #- { key: K, mods: Command, mode: ~Vi|~Search, chars: "\x0c" }
+ #- { key: K, mods: Command, mode: ~Vi|~Search, action: ClearHistory }
+ #- { key: Key0, mods: Command, action: ResetFontSize }
+ #- { key: Equals, mods: Command, action: IncreaseFontSize }
+ #- { key: Plus, mods: Command, action: IncreaseFontSize }
+ #- { key: NumpadAdd, mods: Command, action: IncreaseFontSize }
+ #- { key: Minus, mods: Command, action: DecreaseFontSize }
+ #- { key: NumpadSubtract, mods: Command, action: DecreaseFontSize }
+ #- { key: V, mods: Command, action: Paste }
+ #- { key: C, mods: Command, action: Copy }
+ #- { key: C, mods: Command, mode: Vi|~Search, action: ClearSelection }
+ #- { key: H, mods: Command, action: Hide }
+ #- { key: M, mods: Command, action: Minimize }
+ #- { key: Q, mods: Command, action: Quit }
+ #- { key: W, mods: Command, action: Quit }
+ #- { key: N, mods: Command, action: SpawnNewInstance }
+ #- { key: F, mods: Command|Control, action: ToggleFullscreen }
+ #- { key: F, mods: Command, mode: ~Search, action: SearchForward }
+ #- { key: B, mods: Command, mode: ~Search, action: SearchBackward }
#debug:
# Display the time it takes to redraw each frame.