-# Key bindings are specified as a list of objects. For example, this is the
-# default paste binding:
-#
-# `- { key: V, mods: Control|Shift, action: Paste }`
-#
-# Each key binding will specify a:
-#
-# - `key`: Identifier of the key pressed
-#
-# - A-Z
-# - F1-F24
-# - Key0-Key9
-#
-# A full list with available key codes can be found here:
-# https://docs.rs/glutin/*/glutin/event/enum.VirtualKeyCode.html#variants
-#
-# Instead of using the name of the keys, the `key` field also supports using
-# the scancode of the desired key. Scancodes have to be specified as a
-# decimal number. This command will allow you to display the hex scancodes
-# for certain keys:
-#
-# `showkey --scancodes`.
-#
-# Then exactly one of:
-#
-# - `chars`: Send a byte sequence to the running application
-#
-# The `chars` field writes the specified string to the terminal. This makes
-# it possible to pass escape sequences. To find escape codes for bindings
-# like `PageUp` (`"\x1b[5~"`), you can run the command `showkey -a` outside
-# of tmux. Note that applications use terminfo to map escape sequences back
-# to keys. It is therefore required to update the terminfo when changing an
-# escape sequence.
-#
-# - `action`: Execute a predefined action
-#
-# - ToggleViMode
-# - Copy
-# - Paste
-# - PasteSelection
-# - IncreaseFontSize
-# - DecreaseFontSize
-# - ResetFontSize
-# - ScrollPageUp
-# - ScrollPageDown
-# - ScrollLineUp
-# - ScrollLineDown
-# - ScrollToTop
-# - ScrollToBottom
-# - ClearHistory
-# - Hide
-# - Minimize
-# - Quit
-# - ToggleFullscreen
-# - SpawnNewInstance
-# - ClearLogNotice
-# - ClearSelection
-# - ReceiveChar
-# - None
-#
-# (`mode: Vi` only):
-# - Open
-# - Up
-# - Down
-# - Left
-# - Right
-# - First
-# - Last
-# - FirstOccupied
-# - High
-# - Middle
-# - Low
-# - SemanticLeft
-# - SemanticRight
-# - SemanticLeftEnd
-# - SemanticRightEnd
-# - WordRight
-# - WordLeft
-# - WordRightEnd
-# - WordLeftEnd
-# - Bracket
-# - ToggleNormalSelection
-# - ToggleLineSelection
-# - ToggleBlockSelection
-# - ToggleSemanticSelection
-#
-# (macOS only):
-# - ToggleSimpleFullscreen: Enters fullscreen without occupying another space
-#
-# (Linux/BSD only):
-# - CopySelection: Copies into selection buffer
-#
-# - `command`: Fork and execute a specified command plus arguments
-#
-# The `command` field must be a map containing a `program` string and an
-# `args` array of command line parameter strings. For example:
-# `{ program: "alacritty", args: ["-e", "vttest"] }`
-#
-# And optionally:
-#
-# - `mods`: Key modifiers to filter binding actions
-#
-# - Command
-# - Control
-# - Option
-# - Super
-# - Shift
-# - Alt
-#
-# Multiple `mods` can be combined using `|` like this:
-# `mods: Control|Shift`.
-# Whitespace and capitalization are relevant and must match the example.
-#
-# - `mode`: Indicate a binding for only specific terminal reported modes
-#
-# This is mainly used to send applications the correct escape sequences
-# when in different modes.
-#
-# - AppCursor
-# - AppKeypad
-# - Alt
-#
-# A `~` operator can be used before a mode to apply the binding whenever
-# the mode is *not* active, e.g. `~Alt`.
-#
-# Bindings are always filled by default, but will be replaced when a new
-# binding with the same triggers is defined. To unset a default binding, it can
-# be mapped to the `ReceiveChar` action. Alternatively, you can use `None` for
-# 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.
-#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 }
-
- # 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 }
-
- # (Windows, Linux, and BSD only)
- #- { key: V, mods: Control|Shift, action: Paste }
- #- { key: C, mods: Control|Shift, action: Copy }
- #- { 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: Add, mods: Control, action: IncreaseFontSize }
- #- { key: Subtract, mods: Control, action: DecreaseFontSize }
- #- { key: Minus, 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: Add, mods: Command, action: IncreaseFontSize }
- #- { key: Minus, 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 }
-
-#debug:
- # Display the time it takes to redraw each frame.
- #render_timer: false
-
- # Keep the log file after quitting Alacritty.
- #persistent_logging: false
-
- # Log level
- #
- # Values for `log_level`:
- # - None
- # - Error
- # - Warn
- # - Info
- # - Debug
- # - Trace
- #log_level: Warn
-
- # Print all received window events.
- #print_events: false
-#Font configuration (changes require restart)
-font:
- family: DejaVu Sans Mono
- style: Book
- bold_style: Bold
- italic_style: Italic
+# Each binding is defined as an object with some properties. Most of the
+# properties are optional. All of the alphabetical keys should have a letter for
+# the `key` value such as `V`. Function keys are probably what you would expect
+# as well (F1, F2, ..). The number keys above the main keyboard are encoded as
+# `Key1`, `Key2`, etc. Keys on the number pad are encoded `Number1`, `Number2`,
+# etc. These all match the glutin::VirtualKeyCode variants.
+#
+# A list with all available `key` names can be found here:
+# https://docs.rs/glutin/*/glutin/enum.VirtualKeyCode.html#variants
+#
+# Possible values for `mods`
+# `Command`, `Super` refer to the super/command/windows key
+# `Control` for the control key
+# `Shift` for the Shift key
+# `Alt` and `Option` refer to alt/option
+#
+# mods may be combined with a `|`. For example, requiring control and shift
+# looks like:
+#
+# mods: Control|Shift
+#
+# The parser is currently quite sensitive to whitespace and capitalization -
+# capitalization must match exactly, and piped items must not have whitespace
+# around them.
+#
+# Either an `action`, `chars`, or `command` field must be present.
+# `action` must be one of `Paste`, `PasteSelection`, `Copy`, or `Quit`.
+# `chars` writes the specified string every time that binding is activated.
+# These should generally be escape sequences, but they can be configured to
+# send arbitrary strings of bytes.
+# `command` must be a map containing a `program` string, and `args` array of
+# strings. For example:
+# - { ... , command: { program: "alacritty", args: ["-e", "vttest"] } }
+key_bindings:
+ - { key: V, mods: Command, action: Paste }
+ - { key: C, mods: Command, action: Copy }
+ - { key: Q, mods: Command, action: Quit }
+ - { key: N, mods: Command, command: { program: "open", args: ["-nb", "io.alacritty"] } }
+ - { key: Home, chars: "\x1bOH", mode: AppCursor }
+ - { key: Home, chars: "\x1b[H", mode: ~AppCursor }
+ - { key: End, chars: "\x1bOF", mode: AppCursor }
+ - { key: End, chars: "\x1b[F", mode: ~AppCursor }
+ - { key: Key0, mods: Command, action: ResetFontSize }
+ - { key: Equals, mods: Command, action: IncreaseFontSize }
+ - { key: Minus, mods: Command, action: DecreaseFontSize }
+ - { key: PageUp, mods: Shift, chars: "\x1b[5;2~" }
+ - { key: PageUp, mods: Control, chars: "\x1b[5;5~" }
+ - { key: PageUp, chars: "\x1b[5~" }
+ - { key: PageDown, mods: Shift, chars: "\x1b[6;2~" }
+ - { key: PageDown, mods: Control, chars: "\x1b[6;5~" }
+ - { key: PageDown, chars: "\x1b[6~" }
+ - { key: Tab, mods: Shift, chars: "\x1b[Z" }
+ - { key: Back, chars: "\x7f" }
+ - { key: Back, mods: Alt, chars: "\x1b\x7f" }
+ - { key: Insert, chars: "\x1b[2~" }
+ - { key: Delete, chars: "\x1b[3~" }
+ - { key: Left, mods: Shift, chars: "\x1b[1;2D" }
+ - { key: Left, mods: Control, chars: "\x1b[1;5D" }
+ - { key: Left, mods: Alt, chars: "\x1b[1;3D" }
+ - { key: Left, chars: "\x1b[D", mode: ~AppCursor }
+ - { key: Left, chars: "\x1bOD", mode: AppCursor }
+ - { key: Right, mods: Shift, chars: "\x1b[1;2C" }
+ - { key: Right, mods: Control, chars: "\x1b[1;5C" }
+ - { key: Right, mods: Alt, chars: "\x1b[1;3C" }
+ - { key: Right, chars: "\x1b[C", mode: ~AppCursor }
+ - { key: Right, chars: "\x1bOC", mode: AppCursor }
+ - { key: Up, mods: Shift, chars: "\x1b[1;2A" }
+ - { key: Up, mods: Control, chars: "\x1b[1;5A" }
+ - { key: Up, mods: Alt, chars: "\x1b[1;3A" }
+ - { key: Up, chars: "\x1b[A", mode: ~AppCursor }
+ - { key: Up, chars: "\x1bOA", mode: AppCursor }
+ - { key: Down, mods: Shift, chars: "\x1b[1;2B" }
+ - { key: Down, mods: Control, chars: "\x1b[1;5B" }
+ - { key: Down, mods: Alt, chars: "\x1b[1;3B" }
+ - { key: Down, chars: "\x1b[B", mode: ~AppCursor }
+ - { key: Down, chars: "\x1bOB", mode: AppCursor }
+ - { key: F1, chars: "\x1bOP" }
+ - { key: F2, chars: "\x1bOQ" }
+ - { key: F3, chars: "\x1bOR" }
+ - { key: F4, chars: "\x1bOS" }
+ - { key: F5, chars: "\x1b[15~" }
+ - { key: F6, chars: "\x1b[17~" }
+ - { key: F7, chars: "\x1b[18~" }
+ - { key: F8, chars: "\x1b[19~" }
+ - { key: F9, chars: "\x1b[20~" }
+ - { key: F10, chars: "\x1b[21~" }
+ - { key: F11, chars: "\x1b[23~" }
+ - { key: F12, chars: "\x1b[24~" }
+ - { key: F1, mods: Shift, chars: "\x1b[1;2P" }
+ - { key: F2, mods: Shift, chars: "\x1b[1;2Q" }
+ - { key: F3, mods: Shift, chars: "\x1b[1;2R" }
+ - { key: F4, mods: Shift, chars: "\x1b[1;2S" }
+ - { key: F5, mods: Shift, chars: "\x1b[15;2~" }
+ - { key: F6, mods: Shift, chars: "\x1b[17;2~" }
+ - { key: F7, mods: Shift, chars: "\x1b[18;2~" }
+ - { key: F8, mods: Shift, chars: "\x1b[19;2~" }
+ - { key: F9, mods: Shift, chars: "\x1b[20;2~" }
+ - { key: F10, mods: Shift, chars: "\x1b[21;2~" }
+ - { key: F11, mods: Shift, chars: "\x1b[23;2~" }
+ - { key: F12, mods: Shift, chars: "\x1b[24;2~" }
+ - { key: F1, mods: Control, chars: "\x1b[1;5P" }
+ - { key: F2, mods: Control, chars: "\x1b[1;5Q" }
+ - { key: F3, mods: Control, chars: "\x1b[1;5R" }
+ - { key: F4, mods: Control, chars: "\x1b[1;5S" }
+ - { key: F5, mods: Control, chars: "\x1b[15;5~" }
+ - { key: F6, mods: Control, chars: "\x1b[17;5~" }
+ - { key: F7, mods: Control, chars: "\x1b[18;5~" }
+ - { key: F8, mods: Control, chars: "\x1b[19;5~" }
+ - { key: F9, mods: Control, chars: "\x1b[20;5~" }
+ - { key: F10, mods: Control, chars: "\x1b[21;5~" }
+ - { key: F11, mods: Control, chars: "\x1b[23;5~" }
+ - { key: F12, mods: Control, chars: "\x1b[24;5~" }
+ - { key: F1, mods: Alt, chars: "\x1b[1;6P" }
+ - { key: F2, mods: Alt, chars: "\x1b[1;6Q" }
+ - { key: F3, mods: Alt, chars: "\x1b[1;6R" }
+ - { key: F4, mods: Alt, chars: "\x1b[1;6S" }
+ - { key: F5, mods: Alt, chars: "\x1b[15;6~" }
+ - { key: F6, mods: Alt, chars: "\x1b[17;6~" }
+ - { key: F7, mods: Alt, chars: "\x1b[18;6~" }
+ - { key: F8, mods: Alt, chars: "\x1b[19;6~" }
+ - { key: F9, mods: Alt, chars: "\x1b[20;6~" }
+ - { key: F10, mods: Alt, chars: "\x1b[21;6~" }
+ - { key: F11, mods: Alt, chars: "\x1b[23;6~" }
+ - { key: F12, mods: Alt, chars: "\x1b[24;6~" }
+ - { key: F1, mods: Command, chars: "\x1b[1;3P" }
+ - { key: F2, mods: Command, chars: "\x1b[1;3Q" }
+ - { key: F3, mods: Command, chars: "\x1b[1;3R" }
+ - { key: F4, mods: Command, chars: "\x1b[1;3S" }
+ - { key: F5, mods: Command, chars: "\x1b[15;3~" }
+ - { key: F6, mods: Command, chars: "\x1b[17;3~" }
+ - { key: F7, mods: Command, chars: "\x1b[18;3~" }
+ - { key: F8, mods: Command, chars: "\x1b[19;3~" }
+ - { key: F9, mods: Command, chars: "\x1b[20;3~" }
+ - { key: F10, mods: Command, chars: "\x1b[21;3~" }
+ - { key: F11, mods: Command, chars: "\x1b[23;3~" }
+ - { key: F12, mods: Command, chars: "\x1b[24;3~" }
+ - { key: D, mods: Command, chars: "\x06\x76" }
+ - { key: D, mods: Command|Shift, chars: "\x06\x73" }
+ - { key: W, mods: Command, chars: "\x06\x78" }
+ - { key: H, mods: Command, chars: "\x06\x68" }
+ - { key: J, mods: Command, chars: "\x06\x6a" }
+ - { key: K, mods: Command, chars: "\x06\x6b" }
+ - { key: L, mods: Command, chars: "\x06\x6c" }
+ - { key: T, mods: Command, chars: "\x06\x63" }
+ - { key: RBracket, mods: Command|Shift, chars: "\x06\x6e" }
+ - { key: LBracket, mods: Command|Shift, chars: "\x06\x70" }
+ - { key: Return, mods: Command|Shift, chars: "\x06\x7a" }
+ - { key: Key1, mods: Command, chars: "\x06\x31" }
+ - { key: Key2, mods: Command, chars: "\x06\x32" }
+ - { key: Key3, mods: Command, chars: "\x06\x33" }
+ - { key: Key4, mods: Command, chars: "\x06\x34" }
+ - { key: Key5, mods: Command, chars: "\x06\x35" }
+ - { key: Key6, mods: Command, chars: "\x06\x36" }
+ - { key: Key7, mods: Command, chars: "\x06\x37" }
+ - { key: Key8, mods: Command, chars: "\x06\x38" }
+ - { key: Key9, mods: Command, chars: "\x06\x39" }
+ - { key: Left, mods: Command, chars: "\x06\x48" }
+ - { key: Down, mods: Command, chars: "\x06\x4a" }
+ - { key: Up, mods: Command, chars: "\x06\x4b" }
+ - { key: Right, mods: Command, chars: "\x06\x4c" }