From 909acaa69f072230cfa9468d0d73b610525c87c5 Mon Sep 17 00:00:00 2001 From: Dmitry Chumak Date: Wed, 23 Apr 2025 20:21:06 +0300 Subject: [PATCH] alacritty fixes --- alacritty/alacritty.toml | 20 ++++++++++++++++++++ tmux.conf | 4 +++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/alacritty/alacritty.toml b/alacritty/alacritty.toml index a0d1305..34165f3 100644 --- a/alacritty/alacritty.toml +++ b/alacritty/alacritty.toml @@ -30,6 +30,7 @@ multiplier = 3 [font] size = 13 # use_thin_strokes = true +# on mac - https://petar.dev/notes/crisp-fonts-alacritty/ [font.normal] family = "RecMonoLinear Nerd Font Mono" @@ -86,5 +87,24 @@ bindings = [ { key = "X", mods = "Command", chars = "\u0018" }, { key = "Y", mods = "Command", chars = "\u0019" }, { key = "Z", mods = "Command", chars = "\u001a" }, + + # Ctrl-LeftArrow escape sequence, ^[[1;5D + # \u001b: ESCAPE character + # \u005b: LEFT SQUARE BRACKET [ + # \u0031: DIGIT ONE 1 + # \u003b: SEMICOLON ; + # \u0035: DIGIT FIVE 5 + # \u0044: LATIN CAPITAL LETTER D + { key = "ArrowLeft", mods = "Command", chars = "\u001b\u005b\u0031\u003b\u0035\u0044" }, + + # Ctrl-RightArrow escape sequence, ^[[1;5D + # ^[[1;5C 27 0033 0x1b + # 91 0133 0x5b + # 49 0061 0x31 + # 59 0073 0x3b + # 53 0065 0x35 + # 67 0103 0x43 + { key = "ArrowRight", mods = "Command", chars = "\u001b\u005b\u0031\u003b\u0035\u0043" }, + { key = "ArrowDown", mods = "Command", chars = "\u001b\u005b\u0031\u003b\u0035\u0042" }, { key = "F", mods = "Control", action = "ToggleMaximized" }, ] diff --git a/tmux.conf b/tmux.conf index f579aee..6b009aa 100755 --- a/tmux.conf +++ b/tmux.conf @@ -1,4 +1,6 @@ -set -g default-terminal "screen-256color" +set -g default-terminal "xterm-256color" +set-option -gas terminal-overrides "*:Tc" +set-option -gas terminal-overrides "*:RGB" set -g mouse on set -g set-clipboard external set -g escape-time 10 # https://www.johnhawthorn.com/2012/09/vi-escape-delays/