How to cancel selection mode in zsh in other way than add text to $BUFFER?
1
vote
2
answers
362
views
zle widgets working by Ctrl-Right keys, Ctrl-Left keys (first widget is starting selection mode):
c-sel-r-reg () {
local WORDCHARS=${WORDCHARS/\/}
zle select-in-word
}
zle -N c-sel-r-reg
bindkey "^[Oc" c-sel-r-reg
c-l-reg () {
local WORDCHARS=${WORDCHARS/\/}
zle vi-backward-word
zle end-of-line
zle -U " "
}
zle -N c-l-reg
bindkey "^[Od" c-l-reg
Asked by canic
(61 rep)
Jan 14, 2020, 11:00 AM
Last activity: Jan 1, 2025, 09:47 AM
Last activity: Jan 1, 2025, 09:47 AM