diff --git a/.config/alacritty/alacritty.yml b/.config/alacritty/alacritty.yml index 75f77f4..1e6a99e 100644 --- a/.config/alacritty/alacritty.yml +++ b/.config/alacritty/alacritty.yml @@ -1,5 +1,13 @@ # Configuration for Alacritty, the GPU enhanced terminal emulator. +# Import additional configuration files +# +# These configuration files will be loaded in order, replacing values in files +# loaded earlier with those loaded later in the chain. The file itself will +# always be loaded last. +#import: +# - /path/to/alacritty.yml + # Any items in the `env` entry below will be added as # environment variables. Some entries may override variables # set by alacritty itself. @@ -15,8 +23,9 @@ #window: # Window dimensions (changes require restart) # - # Specified in number of columns/lines, not pixels. - # If both are `0`, this setting is ignored. + # Number of lines/columns (not pixels) in the terminal. The number of columns + # must be at least `2`, while using a value of `0` for columns and lines will + # fall back to the window manager's recommended size. #dimensions: # columns: 0 # lines: 0 @@ -148,7 +157,7 @@ font: # 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 @@ -202,6 +211,20 @@ colors: # text: '#eaeaea' # background: '#404040' + # Search colors + # + # Colors used for the search bar and match highlighting. + #search: + # Allowed values are CellForeground and CellBackground, which reference the + # affected cell, or hexadecimal colors like #ff00ff. + #matches: + # foreground: '#000000' + # background: '#ffffff' + + #bar: + # background: '#c5c8c6' + # foreground: '#1d1f21' + # Normal colors normal: black: '0x0a0f14' @@ -298,6 +321,7 @@ colors: background_opacity: 0.8 #selection: + # This string contains all characters that are used as separators for "semantic words" in Alacritty. #semantic_escape_chars: ",│`|:\"' ()[]{}<>\t" # When set to `true`, selected text will be copied to the primary clipboard. @@ -355,7 +379,7 @@ background_opacity: 0.8 # # 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 the WinPTY backend will be used instead. +# 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. @@ -462,9 +486,12 @@ mouse: # - `action`: Execute a predefined action # # - ToggleViMode +# - SearchForward +# Start searching toward the right of the search origin. +# - SearchBackward +# Start searching toward the left of the search origin. # - Copy # - Paste -# - PasteSelection # - IncreaseFontSize # - DecreaseFontSize # - ResetFontSize @@ -477,47 +504,88 @@ mouse: # - ScrollToTop # - ScrollToBottom # - ClearHistory +# Remove the terminal's scrollback history. # - Hide +# Hide the Alacritty window. # - Minimize +# Minimize the Alacritty window. # - Quit +# Quit Alacritty. # - ToggleFullscreen # - SpawnNewInstance +# Spawn a new instance of Alacritty. # - ClearLogNotice +# Clear Alacritty's UI warning and error notice. # - ClearSelection +# Remove the active selection. # - ReceiveChar # - None # # (`mode: Vi` only): # - Open +# Open URLs at the cursor location with the launcher configured in `url.launcher`. # - Up +# Move the vi mode cursor up by one line. # - Down +# Move the vi mode cursor down by one line. # - Left +# Move the vi mode cursor left by one character. # - Right +# Move the vi mode cursor right by one character. # - First +# Move the vi mode cursor to the start of the line, searching across newlines if it is already at the beginning. # - Last +# Move the vi mode cursor to the end of the line, searching across newlines if it is already at the end. # - FirstOccupied +# Move the vi mode cursor to the first non-empty cell in this line, searching across newlines if it is already at the first one. # - High +# Move the vi mode cursor to the top of the screen. # - Middle +# Move the vi mode cursor to the middle of the screen. # - Low +# Move the vi mode cursor to the bottom of the screen. # - SemanticLeft +# Move the vi mode cursor to the start of the previous semantically separated word. # - SemanticRight +# Move the vi mode cursor to the start of the next semantically separated word. # - SemanticLeftEnd +# Move the vi mode cursor to the end of the previous semantically separated word. # - SemanticRightEnd -# - WordRight +# Move the vi mode cursor to the end of the next semantically separated word. # - WordLeft -# - WordRightEnd +# Move the vi mode cursor to the start of the previous whitespace separated word. +# - WordRight +# Move the vi mode cursor to the start of the next whitespace separated word. # - WordLeftEnd +# Move the vi mode cursor to the end of the previous whitespace separated word. +# - WordRightEnd +# Move the vi mode cursor to the end of the next whitespace separated word. # - Bracket +# Move the vi mode cursor to the next character that matches the bracket at the cursor's +# current location. # - ToggleNormalSelection # - ToggleLineSelection # - ToggleBlockSelection # - ToggleSemanticSelection +# Toggle semantic selection based on `selection.semantic_escape_chars`. +# - SearchNext +# Jump to the beginning of the next match. +# - SearchPrevious +# Jump to the beginning of the previous match. +# - SearchStart +# Jump to the next start of a match to the left of the vi mode cursor. +# - SearchEnd +# Jump to the next end of a match to the left of the vi mode cursor. # # (macOS only): -# - ToggleSimpleFullscreen: Enters fullscreen without occupying another space +# - ToggleSimpleFullscreen +# Enter fullscreen without occupying another space. # # (Linux/BSD only): -# - CopySelection: Copies into selection buffer +# - CopySelection +# Copy from the selection buffer. +# - PasteSelection +# Paste from the selection buffer. # # - `command`: Fork and execute a specified command plus arguments # @@ -548,6 +616,7 @@ mouse: # - AppCursor # - AppKeypad # - Alt +# - Vi # # A `~` operator can be used before a mode to apply the binding whenever # the mode is *not* active, e.g. `~Alt`. @@ -558,7 +627,7 @@ mouse: # a no-op if you do not wish to receive input characters for that binding. # # If the same trigger is assigned to multiple actions, all of them are executed -# at once. +# in the order they were defined in. key_bindings: #- { key: Paste, action: Paste } #- { key: Copy, action: Copy } @@ -575,6 +644,7 @@ key_bindings: #- { 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 } @@ -612,10 +682,16 @@ key_bindings: #- { 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 } # (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 } @@ -643,7 +719,8 @@ key_bindings: #- { 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: N, mods: Control|Shift, action: SpawnNewInstance } - { key: Paste, action: Paste } - { key: Copy, action: Copy }