From 286baf335f7b020030b4444cb1eac1eb6a11cb8f Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Fri, 21 Oct 2022 01:23:43 +0200 Subject: [PATCH] zsh:keys: Shift-{,Back}space should act like w/o --- .config/zsh/zshrc.d/60-keys.zsh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.config/zsh/zshrc.d/60-keys.zsh b/.config/zsh/zshrc.d/60-keys.zsh index bd188b6..7ca2c4b 100644 --- a/.config/zsh/zshrc.d/60-keys.zsh +++ b/.config/zsh/zshrc.d/60-keys.zsh @@ -48,6 +48,15 @@ bindkey '^H' run-help bindkey '^E' edit-command-line bindkey '^S' vi-pound-insert +# 'Fixed terminal input sequences' +# +# https://www.leonerd.org.uk/hacks/fixterms/ +# https://www.leonerd.org.uk/code/libtermkey/ + +# shift-{,back}space should behave like without shift +bindkey -s '^[[32;2u' ' ' # shift-space -> space +bindkey -s '^[[127;2u' '^?' # shift-backspace -> backspace + ## Navigation bindkey "$terminfo[kcbt]" reverse-menu-complete # shift-tab bindkey "$terminfo[khome]" vi-beginning-of-line # home