This commit is contained in:
Santiago Lo Coco 2022-01-26 19:25:19 -03:00
parent 7cda2c63f5
commit 6edbfd39cb
1 changed files with 7 additions and 15 deletions

View File

@ -27,13 +27,9 @@ source $ZSH/oh-my-zsh.sh
bindkey -v bindkey -v
function zle-keymap-select { function zle-keymap-select {
if [[ ${KEYMAP} == vicmd ]] || if [[ ${KEYMAP} == vicmd ]] || [[ $1 = 'block' ]]; then
[[ $1 = 'block' ]]; then
echo -ne '\e[1 q' echo -ne '\e[1 q'
elif [[ ${KEYMAP} == main ]] || elif [[ ${KEYMAP} == main ]] || [[ ${KEYMAP} == viins ]] || [[ ${KEYMAP} = '' ]] || [[ $1 = 'beam' ]]; then
[[ ${KEYMAP} == viins ]] ||
[[ ${KEYMAP} = '' ]] ||
[[ $1 = 'beam' ]]; then
echo -ne '\e[5 q' echo -ne '\e[5 q'
fi fi
} }
@ -44,8 +40,7 @@ zle-line-init() {
zle -K viins zle -K viins
echo -ne "\e[5 q" echo -ne "\e[5 q"
# https://git.suckless.org/st/file/FAQ.html -> Why doesn't the Del key work in some programs? echoti smkx # Del key: https://git.suckless.org/st/file/FAQ.html
echoti smkx
} }
zle -N zle-line-init zle -N zle-line-init
@ -64,10 +59,7 @@ zle -N history-beginning-search-forward-end history-search-end
bindkey "^[[A" history-beginning-search-backward-end bindkey "^[[A" history-beginning-search-backward-end
bindkey "^[[B" history-beginning-search-forward-end bindkey "^[[B" history-beginning-search-forward-end
# https://git.suckless.org/st/file/FAQ.html -> Why doesn't the Del key work in some programs?
#function zle-line-init () { echoti smkx }
function zle-line-finish () { echoti rmkx } function zle-line-finish () { echoti rmkx }
#zle -N zle-line-init
zle -N zle-line-finish zle -N zle-line-finish
source ~/.zshrc_aliases source ~/.zshrc_aliases