Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: ctrl w behaviour: jump in front of separating characters?



Bart Schaefer wrote on Tue, 24 Aug 2021 22:32 +00:00:
> Writing your own widget:
> 
> backward-kill-word-space() {
>   backward-kill-word-match

This should have read «zle backward-kill-word-match».

>   while [[ $LBUFFER = *' ' ]] &&
>     zle backward-delete-char

Curious: Any particular reason to prefer this over «LBUFFER=${LBUFFER% }»?

>   do :; done
> }
> zle -N backward-kill-word backward-kill-word-space
> 
> 

Cheers,

Daniel




Messages sorted by: Reverse Date, Date, Thread, Author