Alacritty: sync with latest master

This commit is contained in:
2020-12-17 01:40:56 +01:00
parent c6a89a9fde
commit 293a40309d

View File

@@ -1,5 +1,13 @@
# Configuration for Alacritty, the GPU enhanced terminal emulator. # 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 # Any items in the `env` entry below will be added as
# environment variables. Some entries may override variables # environment variables. Some entries may override variables
# set by alacritty itself. # set by alacritty itself.
@@ -15,8 +23,9 @@
#window: #window:
# Window dimensions (changes require restart) # Window dimensions (changes require restart)
# #
# Specified in number of columns/lines, not pixels. # Number of lines/columns (not pixels) in the terminal. The number of columns
# If both are `0`, this setting is ignored. # 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: #dimensions:
# columns: 0 # columns: 0
# lines: 0 # lines: 0
@@ -148,7 +157,7 @@ font:
# Glyph offset determines the locations of the glyphs within their cells with # 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, # 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: #glyph_offset:
# x: 0 # x: 0
# y: 0 # y: 0
@@ -202,6 +211,20 @@ colors:
# text: '#eaeaea' # text: '#eaeaea'
# background: '#404040' # 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 colors
normal: normal:
black: '0x0a0f14' black: '0x0a0f14'
@@ -298,6 +321,7 @@ colors:
background_opacity: 0.8 background_opacity: 0.8
#selection: #selection:
# This string contains all characters that are used as separators for "semantic words" in Alacritty.
#semantic_escape_chars: ",│`|:\"' ()[]{}<>\t" #semantic_escape_chars: ",│`|:\"' ()[]{}<>\t"
# When set to `true`, selected text will be copied to the primary clipboard. # 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, # 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 # 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, # Setting this option to `true` makes Alacritty use the legacy WinPTY backend,
# even if the ConPTY backend is available. # even if the ConPTY backend is available.
@@ -462,9 +486,12 @@ mouse:
# - `action`: Execute a predefined action # - `action`: Execute a predefined action
# #
# - ToggleViMode # - ToggleViMode
# - SearchForward
# Start searching toward the right of the search origin.
# - SearchBackward
# Start searching toward the left of the search origin.
# - Copy # - Copy
# - Paste # - Paste
# - PasteSelection
# - IncreaseFontSize # - IncreaseFontSize
# - DecreaseFontSize # - DecreaseFontSize
# - ResetFontSize # - ResetFontSize
@@ -477,47 +504,88 @@ mouse:
# - ScrollToTop # - ScrollToTop
# - ScrollToBottom # - ScrollToBottom
# - ClearHistory # - ClearHistory
# Remove the terminal's scrollback history.
# - Hide # - Hide
# Hide the Alacritty window.
# - Minimize # - Minimize
# Minimize the Alacritty window.
# - Quit # - Quit
# Quit Alacritty.
# - ToggleFullscreen # - ToggleFullscreen
# - SpawnNewInstance # - SpawnNewInstance
# Spawn a new instance of Alacritty.
# - ClearLogNotice # - ClearLogNotice
# Clear Alacritty's UI warning and error notice.
# - ClearSelection # - ClearSelection
# Remove the active selection.
# - ReceiveChar # - ReceiveChar
# - None # - None
# #
# (`mode: Vi` only): # (`mode: Vi` only):
# - Open # - Open
# Open URLs at the cursor location with the launcher configured in `url.launcher`.
# - Up # - Up
# Move the vi mode cursor up by one line.
# - Down # - Down
# Move the vi mode cursor down by one line.
# - Left # - Left
# Move the vi mode cursor left by one character.
# - Right # - Right
# Move the vi mode cursor right by one character.
# - First # - First
# Move the vi mode cursor to the start of the line, searching across newlines if it is already at the beginning.
# - Last # - Last
# Move the vi mode cursor to the end of the line, searching across newlines if it is already at the end.
# - FirstOccupied # - 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 # - High
# Move the vi mode cursor to the top of the screen.
# - Middle # - Middle
# Move the vi mode cursor to the middle of the screen.
# - Low # - Low
# Move the vi mode cursor to the bottom of the screen.
# - SemanticLeft # - SemanticLeft
# Move the vi mode cursor to the start of the previous semantically separated word.
# - SemanticRight # - SemanticRight
# Move the vi mode cursor to the start of the next semantically separated word.
# - SemanticLeftEnd # - SemanticLeftEnd
# Move the vi mode cursor to the end of the previous semantically separated word.
# - SemanticRightEnd # - SemanticRightEnd
# - WordRight # Move the vi mode cursor to the end of the next semantically separated word.
# - WordLeft # - 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 # - 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 # - Bracket
# Move the vi mode cursor to the next character that matches the bracket at the cursor's
# current location.
# - ToggleNormalSelection # - ToggleNormalSelection
# - ToggleLineSelection # - ToggleLineSelection
# - ToggleBlockSelection # - ToggleBlockSelection
# - ToggleSemanticSelection # - 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): # (macOS only):
# - ToggleSimpleFullscreen: Enters fullscreen without occupying another space # - ToggleSimpleFullscreen
# Enter fullscreen without occupying another space.
# #
# (Linux/BSD only): # (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 # - `command`: Fork and execute a specified command plus arguments
# #
@@ -548,6 +616,7 @@ mouse:
# - AppCursor # - AppCursor
# - AppKeypad # - AppKeypad
# - Alt # - Alt
# - Vi
# #
# A `~` operator can be used before a mode to apply the binding whenever # A `~` operator can be used before a mode to apply the binding whenever
# the mode is *not* active, e.g. `~Alt`. # 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. # 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 # 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_bindings:
#- { key: Paste, action: Paste } #- { key: Paste, action: Paste }
#- { key: Copy, action: Copy } #- { key: Copy, action: Copy }
@@ -575,6 +644,7 @@ key_bindings:
#- { key: Escape, mode: Vi, action: ClearSelection } #- { key: Escape, mode: Vi, action: ClearSelection }
#- { key: I, mode: Vi, action: ScrollToBottom } #- { key: I, mode: Vi, action: ScrollToBottom }
#- { key: I, mode: Vi, action: ToggleViMode } #- { key: I, mode: Vi, action: ToggleViMode }
#- { key: C, mods: Control, mode: Vi, action: ToggleViMode }
#- { key: Y, mods: Control, mode: Vi, action: ScrollLineUp } #- { key: Y, mods: Control, mode: Vi, action: ScrollLineUp }
#- { key: E, mods: Control, mode: Vi, action: ScrollLineDown } #- { key: E, mods: Control, mode: Vi, action: ScrollLineDown }
#- { key: G, mode: Vi, action: ScrollToTop } #- { key: G, mode: Vi, action: ScrollToTop }
@@ -612,10 +682,16 @@ key_bindings:
#- { key: W, mods: Shift, mode: Vi, action: WordRight } #- { key: W, mods: Shift, mode: Vi, action: WordRight }
#- { key: E, mods: Shift, mode: Vi, action: WordRightEnd } #- { key: E, mods: Shift, mode: Vi, action: WordRightEnd }
#- { key: Key5, mods: Shift, mode: Vi, action: Bracket } #- { 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) # (Windows, Linux, and BSD only)
#- { key: V, mods: Control|Shift, action: Paste } #- { key: V, mods: Control|Shift, action: Paste }
#- { key: C, mods: Control|Shift, action: Copy } #- { 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: C, mods: Control|Shift, mode: Vi, 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 }
@@ -643,7 +719,8 @@ key_bindings:
#- { 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: B, mods: Command, action: SearchBackward }
- { key: N, mods: Control|Shift, action: SpawnNewInstance } - { key: N, mods: Control|Shift, action: SpawnNewInstance }
- { key: Paste, action: Paste } - { key: Paste, action: Paste }
- { key: Copy, action: Copy } - { key: Copy, action: Copy }