help / color / mirror / code / Atom feed
From: "Daniel Shahaf" <d.s@daniel.shahaf.name>
To: "Zsh Users" <zsh-users@zsh.org>
Cc: "chiasa.men" <chiasa.men@web.de>
Subject: Re: ctrl w behaviour: jump in front of separating characters?
Date: Wed, 25 Aug 2021 18:43:22 +0000	[thread overview]
Message-ID: <85f1bc6c-7bab-400e-8f6c-444cf2892f8d@www.fastmail.com> (raw)
In-Reply-To: <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



  reply	other threads:[~2021-08-25 18:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-24 16:04 chiasa.men
2021-08-24 22:32 ` Bart Schaefer
2021-08-25 18:43   ` Daniel Shahaf [this message]
2021-08-25 19:29     ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=85f1bc6c-7bab-400e-8f6c-444cf2892f8d@www.fastmail.com \
    --to=d.s@daniel.shahaf.name \
    --cc=chiasa.men@web.de \
    --cc=zsh-users@zsh.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).