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

Re: backward-kill-shell-word widget



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