diff --git a/.config/alacritty/alacritty.toml b/.config/alacritty/alacritty.toml index de0f2de..9d9e137 100644 --- a/.config/alacritty/alacritty.toml +++ b/.config/alacritty/alacritty.toml @@ -1,5 +1,16 @@ -#[shell] -#program = "/bin/zsh" +# Vi Mode +# The vi mode allows moving around Alacritty's viewport and scrollback using +# the keyboard. It also serves as a jump-off point for other features like +# search and opening URLs with the keyboard. By default you can launch it +# using Ctrl Shift Space. + +# Selection +# One useful feature of vi mode is the ability to make selections and copy text +# to the clipboard. By default you can start a selection using v and copy it +# using y. All selection modes that are available with the mouse can be accessed +# from vi mode, including the semantic (Alt v), line (Shift v) and block +# selection (Ctrl v). You can also toggle between them while the selection is +# still active. import = [ #"~/.config/alacritty/tokyonight_day.toml", @@ -10,6 +21,9 @@ import = [ [font] normal = { family = "JetBrainsMono Nerd Font", style = "Thin" } +bold = { style = "Bold" } +italic = { style = "Italic" } +bold_italic = { style = "Bold Italic" } size = 17 [window] @@ -25,8 +39,16 @@ color = "#3a3a3a" [cursor] style = { shape = "Block", blinking = "Always" } -# Required to make Ctrl+/ work on macOS (used in Telescope) -[[keyboard.bindings]] -chars = "\u001F" -key = "Slash" -mods = "Control" +[keyboard] + +bindings = [ + # Required to make Ctrl+/ work on macOS (used in Telescope) + { chars = "\u001F", key = "Slash", mods = "Control" }, + { key = "Key0", mods = "Command", action = "ResetFontSize" }, + #{ key = "Equals", mods = "Command", action = "IncreaseFontSize" }, + { key = "Plus", mods = "Command", action = "IncreaseFontSize" }, + { key = "Minus", mods = "Command", action = "DecreaseFontSize" }, +] + +[mouse] +hide_when_typing = true