2021-08-13 14:24:07 +02:00
parent c7c928dbf4
commit a9353cc9f6

View File

@@ -2,9 +2,12 @@
# Import additional configuration files # Import additional configuration files
# #
# These configuration files will be loaded in order, replacing values in files # Imports are loaded in order, skipping all missing files, with the importing
# loaded earlier with those loaded later in the chain. The file itself will # file being loaded last. If a field is already present in a previous import, it
# always be loaded last. # will be replaced.
#
# All imports must either be absolute paths starting with `/`, or paths relative
# to the user's home directory starting with `~/`.
#import: #import:
# - /path/to/alacritty.yml # - /path/to/alacritty.yml
@@ -208,16 +211,6 @@ colors:
# text: CellBackground # text: CellBackground
# cursor: CellForeground # cursor: CellForeground
# Selection colors
#
# Colors which should be used to draw the selection area.
#
# Allowed values are CellForeground and CellBackground, which reference the
# affected cell, or hexadecimal colors like #ff00ff.
selection:
text: '#080808'
background: '#b2ceee'
# Search colors # Search colors
# #
# Colors used for the search bar and match highlighting. # Colors used for the search bar and match highlighting.
@@ -235,6 +228,26 @@ colors:
# background: '#c5c8c6' # background: '#c5c8c6'
# foreground: '#1d1f21' # foreground: '#1d1f21'
# Line indicator
#
# Color used for the indicator displaying the position in history during
# search and vi mode.
#
# By default, these will use the opposing primary color.
#line_indicator:
# foreground: None
# background: None
# Selection colors
#
# Colors which should be used to draw the selection area.
#
# Allowed values are CellForeground and CellBackground, which reference the
# affected cell, or hexadecimal colors like #ff00ff.
selection:
text: '#080808'
background: '#b2ceee'
# Normal colors # Normal colors
normal: normal:
black: '#1d3b53' black: '#1d3b53'
@@ -338,12 +351,23 @@ colors:
cursor: cursor:
# Cursor style # Cursor style
# style:
# Values for `style`: # Cursor shape
# - ▇ Block #
# - _ Underline # Values for `shape`:
# - | Beam # - Block
style: Beam # - _ Underline
# - | Beam
shape: Beam
# Cursor blinking state
#
# Values for `blinking`:
# - Never: Prevent the cursor from ever blinking
# - Off: Disable blinking by default
# - On: Enable blinking by default
# - Always: Force the cursor to always blink
#blinking: Off
# Vi mode cursor style # Vi mode cursor style
# #
@@ -353,6 +377,9 @@ cursor:
# See `cursor.style` for available options. # See `cursor.style` for available options.
#vi_mode_style: None #vi_mode_style: None
# Cursor blinking interval in milliseconds.
#blink_interval: 750
# If this is `true`, the cursor will be rendered as a hollow box when the # If this is `true`, the cursor will be rendered as a hollow box when the
# window is not focused. # window is not focused.
unfocused_hollow: false unfocused_hollow: false
@@ -385,16 +412,6 @@ live_config_reload: false
# directory of the parent process will be used. # directory of the parent process will be used.
#working_directory: None #working_directory: None
# WinPTY backend (Windows only)
#
# Alacritty defaults to using the newer ConPTY backend if it is available,
# since it resolves a lot of bugs and is quite a bit faster. If it is not
# available, the WinPTY backend will be used instead.
#
# Setting this option to `true` makes Alacritty use the legacy WinPTY backend,
# even if the ConPTY backend is available.
#winpty_backend: false
# Send ESC (\x1b) before characters when alt is pressed. # Send ESC (\x1b) before characters when alt is pressed.
#alt_send_esc: true #alt_send_esc: true
@@ -594,6 +611,22 @@ mouse:
# - SearchEnd # - SearchEnd
# End of the match to the right of the vi mode cursor. # 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.
# - SearchHistoryPrevious
# Go to the previous regex in the search history.
# - SearchHistoryNext
# Go to the next regex in the search history.
#
# - macOS exclusive actions: # - macOS exclusive actions:
# - ToggleSimpleFullscreen # - ToggleSimpleFullscreen
# Enter fullscreen without occupying another space. # Enter fullscreen without occupying another space.
@@ -633,6 +666,7 @@ mouse:
# #
# - AppCursor # - AppCursor
# - AppKeypad # - AppKeypad
# - Search
# - Alt # - Alt
# - Vi # - Vi
# #
@@ -647,101 +681,114 @@ mouse:
# If the same trigger is assigned to multiple actions, all of them are executed # If the same trigger is assigned to multiple actions, all of them are executed
# in the order they were defined in. # in the order they were defined in.
key_bindings: key_bindings:
#- { key: Paste, action: Paste } #- { key: Paste, action: Paste }
#- { key: Copy, action: Copy } #- { key: Copy, action: Copy }
#- { key: L, mods: Control, action: ClearLogNotice } #- { key: L, mods: Control, action: ClearLogNotice }
#- { key: L, mods: Control, mode: ~Vi, chars: "\x0c" } #- { key: L, mods: Control, mode: ~Vi|~Search, chars: "\x0c" }
#- { key: PageUp, mods: Shift, mode: ~Alt, action: ScrollPageUp, } #- { key: PageUp, mods: Shift, mode: ~Alt, action: ScrollPageUp, }
#- { key: PageDown, mods: Shift, mode: ~Alt, action: ScrollPageDown } #- { key: PageDown, mods: Shift, mode: ~Alt, action: ScrollPageDown }
#- { key: Home, mods: Shift, mode: ~Alt, action: ScrollToTop, } #- { key: Home, mods: Shift, mode: ~Alt, action: ScrollToTop, }
#- { key: End, mods: Shift, mode: ~Alt, action: ScrollToBottom } #- { key: End, mods: Shift, mode: ~Alt, action: ScrollToBottom }
# Vi Mode # Vi Mode
#- { key: Space, mods: Shift|Control, mode: Vi, action: ScrollToBottom } #- { key: Space, mods: Shift|Control, mode: Vi|~Search, action: ScrollToBottom }
#- { key: Space, mods: Shift|Control, action: ToggleViMode } #- { key: Space, mods: Shift|Control, mode: ~Search, action: ToggleViMode }
#- { key: Escape, mode: Vi, action: ClearSelection } #- { key: Escape, mode: Vi|~Search, action: ClearSelection }
#- { key: I, mode: Vi, action: ScrollToBottom } #- { key: I, mode: Vi|~Search, action: ScrollToBottom }
#- { key: I, mode: Vi, action: ToggleViMode } #- { key: I, mode: Vi|~Search, action: ToggleViMode }
#- { key: C, mods: Control, mode: Vi, action: ToggleViMode } #- { key: C, mods: Control, mode: Vi|~Search, action: ToggleViMode }
#- { key: Y, mods: Control, mode: Vi, action: ScrollLineUp } #- { key: Y, mods: Control, mode: Vi|~Search, action: ScrollLineUp }
#- { key: E, mods: Control, mode: Vi, action: ScrollLineDown } #- { key: E, mods: Control, mode: Vi|~Search, action: ScrollLineDown }
#- { key: G, mode: Vi, action: ScrollToTop } #- { key: G, mode: Vi|~Search, action: ScrollToTop }
#- { key: G, mods: Shift, mode: Vi, action: ScrollToBottom } #- { key: G, mods: Shift, mode: Vi|~Search, action: ScrollToBottom }
#- { key: B, mods: Control, mode: Vi, action: ScrollPageUp } #- { key: B, mods: Control, mode: Vi|~Search, action: ScrollPageUp }
#- { key: F, mods: Control, mode: Vi, action: ScrollPageDown } #- { key: F, mods: Control, mode: Vi|~Search, action: ScrollPageDown }
#- { key: U, mods: Control, mode: Vi, action: ScrollHalfPageUp } #- { key: U, mods: Control, mode: Vi|~Search, action: ScrollHalfPageUp }
#- { key: D, mods: Control, mode: Vi, action: ScrollHalfPageDown } #- { key: D, mods: Control, mode: Vi|~Search, action: ScrollHalfPageDown }
#- { key: Y, mode: Vi, action: Copy } #- { key: Y, mode: Vi|~Search, action: Copy }
#- { key: Y, mode: Vi, action: ClearSelection } #- { key: Y, mode: Vi|~Search, action: ClearSelection }
#- { key: Copy, mode: Vi, action: ClearSelection } #- { key: Copy, mode: Vi|~Search, action: ClearSelection }
#- { key: V, mode: Vi, action: ToggleNormalSelection } #- { key: V, mode: Vi|~Search, action: ToggleNormalSelection }
#- { key: V, mods: Shift, mode: Vi, action: ToggleLineSelection } #- { key: V, mods: Shift, mode: Vi|~Search, action: ToggleLineSelection }
#- { key: V, mods: Control, mode: Vi, action: ToggleBlockSelection } #- { key: V, mods: Control, mode: Vi|~Search, action: ToggleBlockSelection }
#- { key: V, mods: Alt, mode: Vi, action: ToggleSemanticSelection } #- { key: V, mods: Alt, mode: Vi|~Search, action: ToggleSemanticSelection }
#- { key: Return, mode: Vi, action: Open } #- { key: Return, mode: Vi|~Search, action: Open }
#- { key: K, mode: Vi, action: Up } #- { key: K, mode: Vi|~Search, action: Up }
#- { key: J, mode: Vi, action: Down } #- { key: J, mode: Vi|~Search, action: Down }
#- { key: H, mode: Vi, action: Left } #- { key: H, mode: Vi|~Search, action: Left }
#- { key: L, mode: Vi, action: Right } #- { key: L, mode: Vi|~Search, action: Right }
#- { key: Up, mode: Vi, action: Up } #- { key: Up, mode: Vi|~Search, action: Up }
#- { key: Down, mode: Vi, action: Down } #- { key: Down, mode: Vi|~Search, action: Down }
#- { key: Left, mode: Vi, action: Left } #- { key: Left, mode: Vi|~Search, action: Left }
#- { key: Right, mode: Vi, action: Right } #- { key: Right, mode: Vi|~Search, action: Right }
#- { key: Key0, mode: Vi, action: First } #- { key: Key0, mode: Vi|~Search, action: First }
#- { key: Key4, mods: Shift, mode: Vi, action: Last } #- { key: Key4, mods: Shift, mode: Vi|~Search, action: Last }
#- { key: Key6, mods: Shift, mode: Vi, action: FirstOccupied } #- { key: Key6, mods: Shift, mode: Vi|~Search, action: FirstOccupied }
#- { key: H, mods: Shift, mode: Vi, action: High } #- { key: H, mods: Shift, mode: Vi|~Search, action: High }
#- { key: M, mods: Shift, mode: Vi, action: Middle } #- { key: M, mods: Shift, mode: Vi|~Search, action: Middle }
#- { key: L, mods: Shift, mode: Vi, action: Low } #- { key: L, mods: Shift, mode: Vi|~Search, action: Low }
#- { key: B, mode: Vi, action: SemanticLeft } #- { key: B, mode: Vi|~Search, action: SemanticLeft }
#- { key: W, mode: Vi, action: SemanticRight } #- { key: W, mode: Vi|~Search, action: SemanticRight }
#- { key: E, mode: Vi, action: SemanticRightEnd } #- { key: E, mode: Vi|~Search, action: SemanticRightEnd }
#- { key: B, mods: Shift, mode: Vi, action: WordLeft } #- { key: B, mods: Shift, mode: Vi|~Search, action: WordLeft }
#- { key: W, mods: Shift, mode: Vi, action: WordRight } #- { key: W, mods: Shift, mode: Vi|~Search, action: WordRight }
#- { key: E, mods: Shift, mode: Vi, action: WordRightEnd } #- { key: E, mods: Shift, mode: Vi|~Search, action: WordRightEnd }
#- { key: Key5, mods: Shift, mode: Vi, action: Bracket } #- { key: Key5, mods: Shift, mode: Vi|~Search, action: Bracket }
#- { key: Slash, mode: Vi, action: SearchForward } #- { key: Slash, mode: Vi|~Search, action: SearchForward }
#- { key: Slash, mods: Shift, mode: Vi, action: SearchBackward } #- { key: Slash, mods: Shift, mode: Vi|~Search, action: SearchBackward }
#- { key: N, mode: Vi, action: SearchNext } #- { key: N, mode: Vi|~Search, action: SearchNext }
#- { key: N, mods: Shift, mode: Vi, action: SearchPrevious } #- { 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: C, mods: Control, 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) # (Windows, Linux, and BSD only)
#- { key: V, mods: Control|Shift, action: Paste } #- { key: V, mods: Control|Shift, mode: ~Vi, action: Paste }
#- { key: C, mods: Control|Shift, action: Copy } #- { key: C, mods: Control|Shift, action: Copy }
#- { key: F, mods: Control|Shift, action: SearchForward } #- { key: F, mods: Control|Shift, mode: ~Search, action: SearchForward }
#- { key: B, mods: Control|Shift, action: SearchBackward } #- { key: B, mods: Control|Shift, mode: ~Search, action: SearchBackward }
#- { key: C, mods: Control|Shift, mode: Vi, action: ClearSelection } #- { key: C, mods: Control|Shift, mode: Vi|~Search, action: ClearSelection }
#- { key: Insert, mods: Shift, action: PasteSelection } #- { key: Insert, mods: Shift, action: PasteSelection }
#- { key: Key0, mods: Control, action: ResetFontSize } #- { key: Key0, mods: Control, action: ResetFontSize }
#- { key: Equals, mods: Control, action: IncreaseFontSize } #- { key: Equals, mods: Control, action: IncreaseFontSize }
#- { key: Plus, mods: Control, action: IncreaseFontSize } #- { key: Plus, mods: Control, action: IncreaseFontSize }
#- { key: NumpadAdd, mods: Control, action: IncreaseFontSize } #- { key: NumpadAdd, mods: Control, action: IncreaseFontSize }
#- { key: Minus, mods: Control, action: DecreaseFontSize } #- { key: Minus, mods: Control, action: DecreaseFontSize }
#- { key: NumpadSubtract, mods: Control, action: DecreaseFontSize } #- { key: NumpadSubtract, mods: Control, action: DecreaseFontSize }
# (Windows only) # (Windows only)
#- { key: Return, mods: Alt, action: ToggleFullscreen } #- { key: Return, mods: Alt, action: ToggleFullscreen }
# (macOS only) # (macOS only)
#- { key: K, mods: Command, mode: ~Vi, chars: "\x0c" } #- { key: K, mods: Command, mode: ~Vi|~Search, chars: "\x0c" }
#- { key: Key0, mods: Command, action: ResetFontSize } #- { key: K, mods: Command, mode: ~Vi|~Search, action: ClearHistory }
#- { key: Equals, mods: Command, action: IncreaseFontSize } #- { key: Key0, mods: Command, action: ResetFontSize }
#- { key: Plus, mods: Command, action: IncreaseFontSize } #- { key: Equals, mods: Command, action: IncreaseFontSize }
#- { key: NumpadAdd, mods: Command, action: IncreaseFontSize } #- { key: Plus, mods: Command, action: IncreaseFontSize }
#- { key: Minus, mods: Command, action: DecreaseFontSize } #- { key: NumpadAdd, mods: Command, action: IncreaseFontSize }
#- { key: NumpadSubtract, mods: Command, action: DecreaseFontSize } #- { key: Minus, mods: Command, action: DecreaseFontSize }
#- { key: K, mods: Command, action: ClearHistory } #- { key: NumpadSubtract, mods: Command, action: DecreaseFontSize }
#- { key: V, mods: Command, action: Paste } #- { key: V, mods: Command, action: Paste }
#- { key: C, mods: Command, action: Copy } #- { key: C, mods: Command, action: Copy }
#- { key: C, mods: Command, mode: Vi, action: ClearSelection } #- { key: C, mods: Command, mode: Vi|~Search, action: ClearSelection }
#- { key: H, mods: Command, action: Hide } #- { key: H, mods: Command, action: Hide }
#- { key: M, mods: Command, action: Minimize } #- { key: M, mods: Command, action: Minimize }
#- { key: Q, mods: Command, action: Quit } #- { key: Q, mods: Command, action: Quit }
#- { key: W, mods: Command, action: Quit } #- { key: W, mods: Command, action: Quit }
#- { key: N, mods: Command, action: SpawnNewInstance } #- { key: N, mods: Command, action: SpawnNewInstance }
#- { key: F, mods: Command|Control, action: ToggleFullscreen } #- { key: F, mods: Command|Control, action: ToggleFullscreen }
#- { key: F, mods: Command, action: SearchForward } #- { key: F, mods: Command, mode: ~Search, action: SearchForward }
#- { key: B, mods: Command, action: SearchBackward } #- { key: B, mods: Command, mode: ~Search, action: SearchBackward }
# Custom # Custom
- { key: F11, action: ToggleFullscreen } - { key: F11, action: ToggleFullscreen }
@@ -756,7 +803,7 @@ key_bindings:
# Log level # Log level
# #
# Values for `log_level`: # Values for `log_level`:
# - None # - Off
# - Error # - Error
# - Warn # - Warn
# - Info # - Info