fix(zsh): replace input sequences with terminfos

This commit is contained in:
ange 2024-05-15 20:38:37 +02:00
parent b8a48c2440
commit d9c80e0d79
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D

View File

@ -26,11 +26,11 @@ fi
(( ${+terminfo[kdch1]} )) && bindkey -- "${terminfo[kdch1]}" delete-char
# Ctrl-Delete
bindkey -- '^[[3;5~' kill-word
(( "${+terminfo[kDC5]}" )) && bindkey -- "${terminfo[kDC5]}" kill-word
# Ctrl-RightArrow/LeftArrow
bindkey -- '^[[1;5C' forward-word
bindkey -- '^[[1;5D' backward-word
(( "${+terminfo[kRIT5]}" )) && bindkey -- "${terminfo[kRIT5]}" forward-word
(( "${+terminfo[kLFT5]}" )) && bindkey -- "${terminfo[kLFT5]}" backward-word
# Space - don't do history expansion
bindkey ' ' magic-space