From 793611ddf2da9941a3eefbf74b232ddd03d7aebc Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sun, 2 Jul 2023 13:56:10 +0200 Subject: [alacritty+nvim] enable Control+Shift+KEY bindings --- .config/alacritty/alacritty.yml | 9 +++++++++ .config/nvim/config/keys.vim | 1 + 2 files changed, 10 insertions(+) diff --git a/.config/alacritty/alacritty.yml b/.config/alacritty/alacritty.yml index a3d8d4e..b43ea66 100644 --- a/.config/alacritty/alacritty.yml +++ b/.config/alacritty/alacritty.yml @@ -10,3 +10,12 @@ key_bindings: mods: Control action: SpawnNewInstance + # nvim bindings + # chars syntax: \x1b[{$DECIMAL};{$SUM_OF_BITS_MODS}u + # \x1b[ = CSI for ESC+[ + # $DECIMAL = decimal value of unicode char + # $SUM_OF_BITS_MODS = 1=Shift, 2=Alt, 4=Control + # u = unicode + - key: Q + mods: Control|Shift + chars: "\x1b[81;5u" diff --git a/.config/nvim/config/keys.vim b/.config/nvim/config/keys.vim index 7916e12..ffd166c 100644 --- a/.config/nvim/config/keys.vim +++ b/.config/nvim/config/keys.vim @@ -20,6 +20,7 @@ nnoremap > > " esc / quit map nnoremap q +nnoremap qall " save nnoremap w -- cgit v1.2.3