Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Delete everything to the left until next whitespace?
- X-seq: zsh-users 15790
- From: Richard Hartmann <richih.mailinglist@xxxxxxxxx>
- To: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- Subject: Re: Delete everything to the left until next whitespace?
- Date: Thu, 10 Feb 2011 23:14:05 +0100
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=LnLkwJFstiFAsCZMU0seZLjNrlRxpQsfryqA/uy3GoA=; b=m+B+DCQ4JPXzDCdg7ojKbBQuhlSRqz8KbfrVLqhjTyx1YADqnEhB4fmjo1L+XB9LmR YXV4lHGcr+1nCx8jdSEXNgwX2HKzJ2nKRAuV0nSyFnUMAcujx2v7+lnA365SXvVQF830 ALJfkgnLn152a5oJA9cLktfai1w9L4fQ6tl6k=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=qppEobW2T1cJIGxPJnqDobY/UXAATKCrlfTLGNkkRj+/MOA1Y2FEvVehoiBYiaJHkP 6+GiDpixokMv9h7WndZh2+eFUHCeef50yVCmvBarngvQ1E+Wz6VamirdmDHXutPyDKv7 dFSoZPvIOXd2/xgkiVNECSjMohtUGcjro6PwQ=
- In-reply-to: <20110210205252.1f30d8b0@pws-pc.ntlworld.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <AANLkTinaVUBWyk643PsLsmwvQfyL3fk-yxHYhZqR0GgG@mail.gmail.com> <20110210205252.1f30d8b0@pws-pc.ntlworld.com>
On Thu, Feb 10, 2011 at 21:52, Peter Stephenson
<p.w.stephenson@xxxxxxxxxxxx> wrote:
> autoload -U backward-kill-word-match
> zle -N backward-kill-word-space backward-kill-word-match
> zstyle ':zle:backward-kill-word-space' word-style space
> bindkey '^ew' backward-kill-word-space
Thanks for that, I am not sure how I could miss it as it's in plain sight...
That does not handle deletion as I'd like, i.e. this does not work:
% foo bar baz |^ew
% foo bar baz|^ew
but results in
% foo bar baz |^ew
% foo bar |^ew
but this is more than adequate. Thanks :)
Richard
Messages sorted by:
Reverse Date,
Date,
Thread,
Author