Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: ctrl w behaviour: jump in front of separating characters?
- X-seq: zsh-users 26980
- From: "Daniel Shahaf" <d.s@xxxxxxxxxxxxxxxxxx>
- To: "Zsh Users" <zsh-users@xxxxxxx>
- Cc: "chiasa.men" <chiasa.men@xxxxxx>
- Subject: Re: ctrl w behaviour: jump in front of separating characters?
- Date: Wed, 25 Aug 2021 18:43:22 +0000
- Archived-at: <https://zsh.org/users/26980>
- In-reply-to: <CAH+w=7bSY_4YuWSVpdFvOoq24raUFZyKc0T-durHRc8v2KTC5g@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <1669747.SQSiQHpE4G@march> <CAH+w=7bSY_4YuWSVpdFvOoq24raUFZyKc0T-durHRc8v2KTC5g@mail.gmail.com>
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