### Vi Mode: Start Search Binding Source: https://alacritty.org/config-alacritty.html In Vi mode, this binding starts a search. ```yaml bindings: - key: "*" mode: "Vi" action: SearchStart ``` -------------------------------- ### Vi Mode: Move to Start of Next Semantic Word Binding Source: https://alacritty.org/config-alacritty.html In Vi mode, this binding moves the cursor to the start of the next semantically separated word. ```yaml bindings: - key: w mode: "Vi" action: SemanticRight ``` -------------------------------- ### Alacritty Keyboard Bindings Example Source: https://alacritty.org/config-alacritty.html Defines custom keyboard shortcuts for Alacritty. Use this to map key combinations to specific actions or character inputs. ```toml [keyboard] bindings = [ { key = _"N"_ , mods = _"Control|Shift"_ , action = _"CreateNewWindow"_ }, { key = _"L"_ , mods = _"Control|Shift"_ , chars = _"l"_ }, ] ``` -------------------------------- ### Vi Mode: Move to Start of Next Whitespace Word Binding Source: https://alacritty.org/config-alacritty.html In Vi mode, this binding moves the cursor to the start of the next whitespace-separated word. ```yaml bindings: - key: "#w" mode: "Vi" action: WordRight ``` -------------------------------- ### Bind Numpad Keys Source: https://alacritty.org/config-alacritty.html Numpad keys are prefixed with `Numpad`. This example shows binding the Numpad Enter key. ```yaml bindings: - key: "NumpadEnter" chars: "\n" ``` -------------------------------- ### Get Alacritty Configuration Source: https://alacritty.org/cmd-alacritty-msg.html Reads the current runtime Alacritty configuration. Specify a window ID to get the config for a specific window, or use -1 for the global configuration. ```bash alacritty msg get-config ``` ```bash alacritty msg get-config --window-id 12345 ``` ```bash alacritty msg get-config --window-id -1 ``` -------------------------------- ### Vi Mode: Move to Start of Whitespace Word Left Binding Source: https://alacritty.org/config-alacritty.html In Vi mode, this binding moves the cursor to the start of the whitespace-separated word to the left. ```yaml bindings: - key: "#b" mode: "Vi" action: WordLeft ``` -------------------------------- ### Vi Mode: Move to Start of Semantic Word Left Binding Source: https://alacritty.org/config-alacritty.html In Vi mode, this binding moves the cursor to the start of the semantically separated word to the left. ```yaml bindings: - key: b mode: "Vi" action: SemanticLeft ``` -------------------------------- ### Combine Modifiers for Key Bindings Source: https://alacritty.org/config-alacritty.html Multiple modifiers can be combined using the pipe symbol (`|`). This example shows how to bind a key that requires both Control and Shift to be pressed. ```yaml bindings: - key: C mods: "Control | Shift" chars: "c" ``` -------------------------------- ### Default Hint Configuration Source: https://alacritty.org/config-alacritty.html This snippet shows the default configuration for hints, including the command to open links, whether to process hyperlinks and post-processing, persistence, mouse interaction, and the key binding for activating hints. ```toml # On Linux/BSD # command = "xdg-open" # On macOS # command = "open" # On Windows # command = { program = "cmd" , args = [ "/c" , "start" , "" ] } hyperlinks = true post_processing = true persist = false mouse.enabled = true binding = { key = "O" , mods = "Control|Shift" } regex = "(ipfs:|ipns:|magnet:|mailto:|gemini://|gopher://|https://|http://|news:|file:|git://|ssh:|ftp://)[^\u0000-\u001F\u007F-\u009F <>"\\\s{-}\\\^⟨⟩`\\\\\\]+" ``` -------------------------------- ### Configure Window Padding and Opacity Source: https://alacritty.org/config-alacritty.html Set custom padding around the terminal content and adjust background opacity. Padding is applied to both sides and scales with DPI. Opacity ranges from 0.0 (transparent) to 1.0 (opaque). ```toml [window] padding = { x = 3, y = 3 } dynamic_padding = true opacity = 0.9 ``` -------------------------------- ### Configure Shell Program and Arguments Source: https://alacritty.org/config-alacritty.html Specify the shell program and its arguments for Alacritty. Useful for setting a preferred shell like zsh with specific launch arguments. ```toml shell = { program = "/bin/zsh" , args = ["-l"] } ``` -------------------------------- ### Define a Key Binding to Execute a Command Source: https://alacritty.org/config-alacritty.html Use the `command` field to fork and execute an external program. Arguments can be passed as a list of strings. ```yaml bindings: - key: B command: program: "echo" args: ["hello"] ``` -------------------------------- ### Importing Configuration Files in Alacritty Source: https://alacritty.org/config-alacritty.html Use the 'import' field to include additional TOML configuration files. Imports are processed sequentially, with later files overriding earlier ones. Paths can be absolute, relative to the home directory, or relative to the current config file. ```toml import = [ "~/.config/alacritty/base16-dark.toml" , "~/.config/alacritty/keybindings.toml" , "alacritty-theme/themes/gruvbox_dark.toml" , ] ``` -------------------------------- ### Create New Alacritty Window Binding Source: https://alacritty.org/config-alacritty.html This binding creates a new Alacritty window. ```yaml bindings: - key: W mods: "Super | Shift" action: CreateNewWindow ``` -------------------------------- ### Vi Mode: Jump to Next Search Match Binding Source: https://alacritty.org/config-alacritty.html In Vi mode, this binding jumps to the beginning of the next search match. ```yaml bindings: - key: n mode: "Vi" action: SearchNext ``` -------------------------------- ### Vi Mode: Jump to Previous Search Match Binding Source: https://alacritty.org/config-alacritty.html In Vi mode, this binding jumps to the beginning of the previous search match. ```yaml bindings: - key: N mode: "Vi" action: SearchPrevious ``` -------------------------------- ### Configure Mouse Bindings for Paste Source: https://alacritty.org/config-alacritty.html Define custom mouse bindings, such as using Control + Right Click to paste text. This allows for convenient shortcuts for common actions. ```toml bindings = [ { mouse = "Right" , mods = "Control" , action = "Paste" }, ] ``` -------------------------------- ### Create a New Alacritty Window Source: https://alacritty.org/cmd-alacritty-msg.html Creates a new Alacritty window. Use flags like --hold to keep the window open after the child process exits, or specify a working directory and title. ```bash alacritty msg create-window ``` ```bash alacritty msg create-window --hold ``` ```bash alacritty msg create-window --working-directory "/path/to/dir" ``` ```bash alacritty msg create-window --title "My Window Title" ``` ```bash alacritty msg create-window --class "Alacritty,MyInstance" ``` ```bash alacritty msg create-window -o 'cursor.style="Beam"' ``` ```bash alacritty msg create-window -e /usr/bin/bash ``` -------------------------------- ### Vi Mode: Move Up Binding Source: https://alacritty.org/config-alacritty.html In Vi mode, this binding moves the cursor up. ```yaml bindings: - key: k mode: "Vi" action: Up ``` -------------------------------- ### Vi Mode: Move to Top of Screen Binding Source: https://alacritty.org/config-alacritty.html In Vi mode, this binding moves the cursor to the top of the screen. ```yaml bindings: - key: H mode: "Vi" action: High ``` -------------------------------- ### Vi Mode: Move to First Column Binding Source: https://alacritty.org/config-alacritty.html In Vi mode, this binding moves the cursor to the first column. If already at the first column, it moves to the beginning of the line. ```yaml bindings: - key: 0 mode: "Vi" action: First ``` -------------------------------- ### Search Forward Binding Source: https://alacritty.org/config-alacritty.html This binding initiates a forward search within the terminal buffer. ```yaml bindings: - key: "/" mode: "Vi" action: SearchForward ``` -------------------------------- ### Bind Keys Using Scancodes Source: https://alacritty.org/config-alacritty.html The `key` field also supports using scancodes, specified as a decimal number. This provides an alternative way to map keys. ```yaml bindings: - key: 100 chars: "f" ``` -------------------------------- ### Spawn New Alacritty Instance Binding Source: https://alacritty.org/config-alacritty.html This binding spawns a new instance of Alacritty. ```yaml bindings: - key: N mods: "Control | Shift" action: SpawnNewInstance ``` -------------------------------- ### Vi Mode: Move Paragraph Up Binding Source: https://alacritty.org/config-alacritty.html In Vi mode, this binding moves the cursor above the current paragraph. ```yaml bindings: - key: "{" mode: "Vi" action: ParagraphUp ``` -------------------------------- ### Update Alacritty Configuration Source: https://alacritty.org/cmd-alacritty-msg.html Updates the Alacritty configuration for a specific window or all windows. Use the --reset flag to clear all runtime configuration changes. ```bash alacritty msg config 'cursor.style="Beam"' ``` ```bash alacritty msg config --reset ``` ```bash alacritty msg config --window-id -1 'font.size=14' ``` -------------------------------- ### Vi Mode: Move Right Binding Source: https://alacritty.org/config-alacritty.html In Vi mode, this binding moves the cursor right. ```yaml bindings: - key: l mode: "Vi" action: Right ``` -------------------------------- ### Vi Mode: Move to Bottom of Screen Binding Source: https://alacritty.org/config-alacritty.html In Vi mode, this binding moves the cursor to the bottom of the screen. ```yaml bindings: - key: L mode: "Vi" action: Low ``` -------------------------------- ### Search Backward Binding Source: https://alacritty.org/config-alacritty.html This binding initiates a backward search within the terminal buffer. ```yaml bindings: - key: "?" mode: "Vi" action: SearchBackward ``` -------------------------------- ### Vi Mode: Move to Center of Screen Binding Source: https://alacritty.org/config-alacritty.html In Vi mode, this binding moves the cursor to the center of the screen. ```yaml bindings: - key: M mode: "Vi" action: Middle ``` -------------------------------- ### Define a Key Binding with Terminal Modes Source: https://alacritty.org/config-alacritty.html The `mode` field specifies a terminal mode that must be active for the binding to take effect. Multiple modes can be combined with `|`. Prepending `~` negates the mode requirement. ```yaml bindings: - key: D mode: "~Vi" chars: "d" ``` -------------------------------- ### Scroll Line Up Binding Source: https://alacritty.org/config-alacritty.html This binding scrolls the terminal content up by one line. ```yaml bindings: - key: Up mods: "Shift" action: ScrollLineUp ``` -------------------------------- ### Setting Environment Variables in Alacritty Source: https://alacritty.org/config-alacritty.html The [env] section allows you to define environment variables for processes spawned by Alacritty. This can be used to override system-wide variables or set custom ones. ```toml [env] WINIT_X11_SCALE_FACTOR = "1.0" ``` -------------------------------- ### Unset a Default Key Binding Source: https://alacritty.org/config-alacritty.html To unset a default key binding, you can use the `ReceiveChar` action to remove it or `None` to inhibit any action. ```yaml bindings: - key: E action: None ``` -------------------------------- ### Scroll to Top Binding Source: https://alacritty.org/config-alacritty.html This binding scrolls the terminal content all the way to the top. ```yaml bindings: - key: Home mods: "Shift" action: ScrollToTop ``` -------------------------------- ### Setting Alacritty Log Level Source: https://alacritty.org/config-alacritty.html Configure the verbosity of Alacritty's logging output. Use the ALACRITTY_EXTRA_LOG_TARGETS environment variable to include additional libraries in logging. ```shell ALACRITTY_EXTRA_LOG_TARGETS="winit;vte" alacritty -vvv ``` -------------------------------- ### Define a Key Binding to Write Characters Source: https://alacritty.org/config-alacritty.html Use the `chars` field to specify a string that will be written to the terminal when the key combination is pressed. This is useful for inserting text snippets or special characters. ```yaml bindings: - key: A chars: "a" ``` -------------------------------- ### Vi Mode: Move Down Binding Source: https://alacritty.org/config-alacritty.html In Vi mode, this binding moves the cursor down. ```yaml bindings: - key: j mode: "Vi" action: Down ``` -------------------------------- ### Vi Mode: Move to Opposing Bracket Binding Source: https://alacritty.org/config-alacritty.html In Vi mode, this binding moves the cursor to the opposing bracket. ```yaml bindings: - key: "%" mode: "Vi" action: Bracket ``` -------------------------------- ### Vi Mode: Move to Last Column Binding Source: https://alacritty.org/config-alacritty.html In Vi mode, this binding moves the cursor to the last column. If already at the last column, it moves to the beginning of the line. ```yaml bindings: - key: "$" mode: "Vi" action: Last ``` -------------------------------- ### Scroll Half Page Up Binding Source: https://alacritty.org/config-alacritty.html This binding scrolls the terminal content up by half a page. ```yaml bindings: - key: PageUp mods: "Shift" action: ScrollHalfPageUp ``` -------------------------------- ### Vi Mode: Move to End of Previous Semantic Word Binding Source: https://alacritty.org/config-alacritty.html In Vi mode, this binding moves the cursor to the end of the previous semantically separated word. ```yaml bindings: - key: B mode: "Vi" action: SemanticLeftEnd ``` -------------------------------- ### Vi Mode: Move to End of Semantic Word Binding Source: https://alacritty.org/config-alacritty.html In Vi mode, this binding moves the cursor to the end of the current semantically separated word. ```yaml bindings: - key: W mode: "Vi" action: SemanticRightEnd ``` -------------------------------- ### Minimize Alacritty Window Binding Source: https://alacritty.org/config-alacritty.html This binding minimizes the Alacritty window. ```yaml bindings: - key: M mods: "Super | Shift" action: Minimize ``` -------------------------------- ### Vi Mode: Move Left Binding Source: https://alacritty.org/config-alacritty.html In Vi mode, this binding moves the cursor left. ```yaml bindings: - key: h mode: "Vi" action: Left ``` -------------------------------- ### Scroll to Bottom Binding Source: https://alacritty.org/config-alacritty.html This binding scrolls the terminal content all the way to the bottom. ```yaml bindings: - key: End mods: "Shift" action: ScrollToBottom ``` -------------------------------- ### Vi Mode: Move to End of Previous Whitespace Word Binding Source: https://alacritty.org/config-alacritty.html In Vi mode, this binding moves the cursor to the end of the previous whitespace-separated word. ```yaml bindings: - key: "#B" mode: "Vi" action: WordLeftEnd ``` -------------------------------- ### Vi Mode: Move Paragraph Down Binding Source: https://alacritty.org/config-alacritty.html In Vi mode, this binding moves the cursor below the current paragraph. ```yaml bindings: - key: "}" mode: "Vi" action: ParagraphDown ``` -------------------------------- ### Scroll Half Page Down Binding Source: https://alacritty.org/config-alacritty.html This binding scrolls the terminal content down by half a page. ```yaml bindings: - key: PageDown mods: "Shift" action: ScrollHalfPageDown ``` -------------------------------- ### Toggle Fullscreen Binding Source: https://alacritty.org/config-alacritty.html This binding toggles the fullscreen mode of the Alacritty window. ```yaml bindings: - key: F mods: "Super | Shift" action: ToggleFullscreen ``` -------------------------------- ### Vi Mode: Toggle Line Selection Binding Source: https://alacritty.org/config-alacritty.html In Vi mode, this binding toggles the line selection. ```yaml bindings: - key: V mode: "Vi" action: ToggleLineSelection ``` -------------------------------- ### Scroll Page Up Binding Source: https://alacritty.org/config-alacritty.html This binding scrolls the terminal content exactly one page up. ```yaml bindings: - key: PageUp action: ScrollPageUp ``` -------------------------------- ### Vi Mode: Move to End of Whitespace Word Binding Source: https://alacritty.org/config-alacritty.html In Vi mode, this binding moves the cursor to the end of the current whitespace-separated word. ```yaml bindings: - key: "#W" mode: "Vi" action: WordRightEnd ``` -------------------------------- ### Vi Mode: Toggle Normal Selection Binding Source: https://alacritty.org/config-alacritty.html In Vi mode, this binding toggles the normal selection. ```yaml bindings: - key: v mode: "Vi" action: ToggleNormalSelection ``` -------------------------------- ### Vi Mode: Toggle Semantic Selection Binding Source: https://alacritty.org/config-alacritty.html In Vi mode, this binding toggles the semantic selection. ```yaml bindings: - key: "v" mods: "Shift" mode: "Vi" action: ToggleSemanticSelection ``` -------------------------------- ### Clear Log Notice Binding Source: https://alacritty.org/config-alacritty.html This binding clears warning and error notices displayed in Alacritty. ```yaml bindings: - key: N mods: "Super | Shift" action: ClearLogNotice ``` -------------------------------- ### Scroll Line Down Binding Source: https://alacritty.org/config-alacritty.html This binding scrolls the terminal content down by one line. ```yaml bindings: - key: Down mods: "Shift" action: ScrollLineDown ``` -------------------------------- ### Vi Mode: Toggle Block Selection Binding Source: https://alacritty.org/config-alacritty.html In Vi mode, this binding toggles the block selection. ```yaml bindings: - key: "v" mods: "Control" mode: "Vi" action: ToggleBlockSelection ``` -------------------------------- ### Toggle Vi Mode Binding Source: https://alacritty.org/config-alacritty.html This binding toggles the Vi mode in Alacritty, enabling vi-like keybindings for navigation and selection. ```yaml bindings: - key: " " mode: "Vi" action: ToggleViMode ``` -------------------------------- ### Scroll Page Down Binding Source: https://alacritty.org/config-alacritty.html This binding scrolls the terminal content exactly one page down. ```yaml bindings: - key: PageDown action: ScrollPageDown ``` -------------------------------- ### Reset Font Size Binding Source: https://alacritty.org/config-alacritty.html This binding resets the font size to the value defined in the Alacritty configuration. ```yaml bindings: - key: "0" mods: "Control" action: ResetFontSize ``` -------------------------------- ### Vi Mode: Move to First Occupied Cell Binding Source: https://alacritty.org/config-alacritty.html In Vi mode, this binding moves the cursor to the first non-empty cell in the current row. If already at the first cell, it moves to the first non-empty cell of the line. ```yaml bindings: - key: "^" mode: "Vi" action: FirstOccupied ``` -------------------------------- ### Toggle Maximized Binding Source: https://alacritty.org/config-alacritty.html This binding toggles the maximized state of the Alacritty window. ```yaml bindings: - key: M mods: "Super" action: ToggleMaximized ``` -------------------------------- ### Increase Font Size Binding Source: https://alacritty.org/config-alacritty.html This binding increases the font size of the Alacritty terminal. ```yaml bindings: - key: "+" mods: "Control" action: IncreaseFontSize ``` -------------------------------- ### Hide Alacritty Window Binding Source: https://alacritty.org/config-alacritty.html This binding hides the Alacritty window. ```yaml bindings: - key: H mods: "Super | Shift" action: Hide ``` -------------------------------- ### Clear History Binding Source: https://alacritty.org/config-alacritty.html This binding clears the display buffer(s) to remove terminal history. ```yaml bindings: - key: L mods: "Control | Shift" action: ClearHistory ``` -------------------------------- ### Quit Alacritty Binding Source: https://alacritty.org/config-alacritty.html This binding quits the Alacritty application. ```yaml bindings: - key: Q mods: "Super | Shift" action: Quit ``` -------------------------------- ### Decrease Font Size Binding Source: https://alacritty.org/config-alacritty.html This binding decreases the font size of the Alacritty terminal. ```yaml bindings: - key: "-" mods: "Control" action: DecreaseFontSize ``` -------------------------------- ### Clear Selection Binding Source: https://alacritty.org/config-alacritty.html This binding clears the active selection in the Alacritty terminal. ```yaml bindings: - key: C mods: "Super | Alt" action: ClearSelection ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.