commit adc331d45ca2b0b1a15f2a9ca5978337483931bf
parent 1055b77a4705708cc3aadac0f675370c7bffa385
Autor: Alberto Castillo G <me@albertocastillog.com>
Date: Sat, 8 Aug 2020 05:38:58 -0500
Update for Alacritty 0.5.0
Diffstat:
1 archivo modificado, 93 insercioness(+), 61 removidass(-)
diff --git a/alacritty/.config/alacritty/alacritty.yml b/alacritty/.config/alacritty/alacritty.yml
@@ -13,6 +13,7 @@
#TERM: xterm-256color
window:
+ dynamic_title: true
# Window dimensions (changes require restart)
#
# Specified in number of columns/lines, not pixels.
@@ -130,7 +131,7 @@ font:
#
# This is a global setting and will require a log out or restart to take
# effect.
- use_thin_strokes: true
+ use_thin_strokes: false
# Display the time it takes to redraw each frame.
#render_timer: false
@@ -191,6 +192,16 @@ colors:
#cursor:
# text: '0x000000'
# cursor: '0xffffff'
+
+ # Vi mode cursor colors
+ #
+ # Colors for the cursor when the vi mode is active.
+ #
+ # Allowed values are CellForeground and CellBackground, which reference the
+ # affected cell, or hexadecimal colors like #ff00ff.
+ #vi_mode_cursor:
+ # text: CellBackground
+ # cursor: CellForeground
# Selection colors
#
@@ -201,42 +212,19 @@ colors:
# text: '0xeaeaea'
# background: '0x404040'
- # Normal colors
- # normal:
- # black: '0x000000'
- # red: '0xd54e53'
- # green: '0xb9ca4a'
- # yellow: '0xe6c547'
- # blue: '0x7aa6da'
- # magenta: '0xc397d8'
- # cyan: '0x70c0ba'
- # white: '0xeaeaea'
-
- # # Bright colors
- # bright:
- # black: '0x666666'
- # red: '0xff3334'
- # green: '0x9ec400'
- # yellow: '0xe7c547'
- # blue: '0x7aa6da'
- # magenta: '0xb77ee0'
- # cyan: '0x54ced6'
- # white: '0xffffff'
-
- # Dim colors
+ # Search colors
#
- # If the dim colors are not set, they will be calculated automatically based
- # on the `normal` colors.
- #dim:
- # black: '0x000000'
- # red: '0x8c3336'
- # green: '0x7a8530'
- # yellow: '0x97822e'
- # blue: '0x506d8f'
- # magenta: '0x80638e'
- # cyan: '0x497e7a'
- # white: '0x9a9a9a'
-
+ # 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'
# Indexed Colors
#
# The indexed colors include all colors from 16 to 256.
@@ -335,10 +323,7 @@ selection:
semantic_escape_chars: ",│`|:\"' ()[]{}<>"
# When set to `true`, selected text will be copied to the primary clipboard.
- save_to_clipboard: false
-
-# Allow terminal applications to change Alacritty's window title.
-dynamic_title: true
+ save_to_clipboard: true
cursor:
# Cursor style
@@ -353,6 +338,18 @@ cursor:
# window is not focused.
unfocused_hollow: true
+ # Vi mode cursor style
+ #
+ # If the vi mode cursor style is `None` or not specified, it will fall back to
+ # the style of the active value of the normal cursor.
+ #
+ # See `cursor.style` for available options.
+ vi_mode_style: Block
+
+ # Thickness of the cursor relative to the cell width as floating point number
+ # from `0.0` to `1.0`.
+ #thickness: 0.15
+
# Live config reload (changes require restart)
live_config_reload: true
@@ -471,28 +468,63 @@ alt_send_esc: true
# - ~AppKeypad
# - AppKeypad
key_bindings:
+ # 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: 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 }
+
# (Windows/Linux only)
- #- { key: V, mods: Control|Shift, action: Paste }
- #- { key: C, mods: Control|Shift, action: Copy }
- #- { key: Insert, mods: Shift, action: PasteSelection }
- #- { key: Key0, mods: Control, action: ResetFontSize }
- #- { key: Equals, mods: Control, action: IncreaseFontSize }
- #- { key: Add, mods: Control, action: IncreaseFontSize }
- #- { key: Subtract, mods: Control, action: DecreaseFontSize }
- #- { key: Minus, mods: Control, action: DecreaseFontSize }
-
- # (macOS only)
- #- { key: Key0, mods: Command, action: ResetFontSize }
- #- { key: Equals, mods: Command, action: IncreaseFontSize }
- #- { key: Add, mods: Command, action: IncreaseFontSize }
- #- { key: Minus, mods: Command, action: DecreaseFontSize }
- #- { key: K, mods: Command, action: ClearHistory }
- #- { key: K, mods: Command, chars: "\x0c" }
- #- { key: V, mods: Command, action: Paste }
- #- { key: C, mods: Command, action: Copy }
- #- { key: H, mods: Command, action: Hide }
- #- { key: Q, mods: Command, action: Quit }
- #- { key: W, mods: Command, action: Quit }
+ - { key: V, mods: Control|Shift, action: Paste }
+ - { key: C, mods: Control|Shift, action: Copy }
+ - { key: Insert, mods: Shift, action: PasteSelection }
+ - { key: Key0, mods: Control, action: ResetFontSize }
+ - { key: Equals, mods: Control, action: IncreaseFontSize }
+ - { key: Add, mods: Control, action: IncreaseFontSize }
+ - { key: Subtract, mods: Control, action: DecreaseFontSize }
+ - { key: Minus, mods: Control, action: DecreaseFontSize }
- { key: Paste, action: Paste }
- { key: Copy, action: Copy }