Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: backward-kill-shell-word widget
- X-seq: zsh-workers 38288
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: backward-kill-shell-word widget
- Date: Thu, 14 Apr 2016 09:21:24 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=Id0RCulkA3fgyTHgEkJNrI24wgZygYAl8xKBfDcgntM=; b=le87nJ6m8XajbUSQc+jShcbwxpdT00r+naaeX/sYI3Ofsbg5C3+jdESPuF9gbPrQHf 0qqtNYbvCp2sota4p4Ybt/r/xiJ4cIEqF5oEU5ZX7s5KOcJ0jX98DszH5uiQKHPQfJI0 xWzO1ruR+J+DuOwssxP2NZeU1wML4d5kAmHLTlyKvp/TKKcrOKZMDxu8nCiZaZQxnLq0 FyN9uGY8UQJ6vxBa/L1xMyJG4LqybZoEPceIxCqv5Oz4Ltssk5seVP64KWgc3EoGeZHJ ApVdYn8eEz54WQnOZNxE3vt4YVG0SQqEz9Ln4DeMdwEzT6vVf+8A4aHk5NwglYKTwhRs 9e8Q==
- In-reply-to: <160110091744.ZM585@torch.brasslantern.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20160110003758.GA28696@tarsus.local2> <160110091744.ZM585@torch.brasslantern.com>
On Sun, Jan 10, 2016 at 9:17 AM, Bart Schaefer
<schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> As of 5.0.8 you can do this with:
>
> backward-kill-shell-word() {
> zle select-in-shell-word
> ((++CURSOR)) # adjust for vi vs. emacs region
> zle kill-region
> }
>
> I'm not sure if that CURSOR adjustment is a a bug or just a necessary
> evil because of using vi binding in the emacs keymap.
Following up to this because select-in-shell-word has just been fixed
to make the increment of CURSOR unnecessary, so as of 5.3 that line
should be dropped from the above example function.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author