Commit for generation 235

This commit is contained in:
2024-10-10 05:07:48 -04:00
parent 192c03fa71
commit 06181c0287
3 changed files with 19 additions and 2 deletions

View File

@@ -23,6 +23,8 @@ zle -N right-beep
zle -N up-beep
zle -N down-beep
bindkey -v
bindkey -M viins "^[OD" left-beep
bindkey -M viins "^[OC" right-beep
bindkey -M viins "^[OB" down-beep
@@ -34,3 +36,17 @@ bindkey -M vicmd "j" down-beep
bindkey -M vicmd "k" up-beep
ZSH_AUTOSUGGEST_ACCEPT_WIDGETS+=("right-beep")
function zle-keymap-select {
if [[ ${KEYMAP} == vicmd ]] ||
[[ $1 = 'block' ]]; then
echo -ne "\e[1 q" # Change the cursor to a block (normal mode)
else
echo -ne "\e[5 q" # Change the cursor to a line (insert mode)
fi
}
zle -N zle-keymap-select
zle-line-init() {
zle-keymap-select 'insert'
}
zle -N zle-line-init