Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug: zsh vim textobjects and slash
- X-seq: zsh-workers 42801
- From: Itay Shakury <itaysk@xxxxxxxxxxxx>
- To: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- Subject: Re: Bug: zsh vim textobjects and slash
- Date: Fri, 18 May 2018 20:51:12 +0300
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codefresh-io.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=BrRB+RLvUsrTvsTnZ8dpDB3IFPYdTx02dylIhu4qLJs=; b=IGliReA0JDofPrEJib36FbU8BZ2J3c/ByqZgJ7u9mPlZqyKb8o7sWwKpsJX6zu2NMC Sz4Qj6APzshjolpsAgFiaL5HR8RL4jC3WWL3TrG9z3x5dJIRWTTKo2iQgq18U7fgfKXq dr0dJrcWThIVIFMtQ53bUnad9/vf5a8RrI7qOKaSCh/fmMfrd96gZ1qzdz1Gyw++RGtW NU/zMp4R5cYQ0J3jAIuImlkC8Mgs6X8xqemPMmRRyXxTT6AFmjI53fpxNT1ADqKa1FFm wniucLJ4Jmhyr5fYiMOfkP6NVjVUBcRG0Olh6xYO0aP+MdqeI9IG94D9jF6WD3kXMSRd jJGw==
- In-reply-to: <29015.1526646368@thecus>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAHOaShs8sVQmQ=GikZGvH+XXe9q_L5Hh+hHD4skftqVgiuLPhg@mail.gmail.com> <29015.1526646368@thecus>
> I think this has been fixed in a6135f6 (41191) which is in zsh 5.4.
THANKS! Confirmed working in 5.5.1
On Fri, May 18, 2018 at 3:26 PM Oliver Kiddle <okiddle@xxxxxxxxxxx> wrote:
> Itay Shakury wrote:
> > Example: if I'm typing `ls /var/lib/docker` and want to change 'lib' to
> > 'run', I would place the cursor in the 'lib' word, and do `ciw`. In vim
> > this would delete the 'lib' word and put me in insert mode. In zsh it
> > deletes the entire path ('var/lib/docker').
>
> This bug doesn't occur with a default zsh setup. I do, however, have
> a theory as to the cause. I suspect that you are using a plugin that
> redefines every zle widget (every key in effect).
> zsh-syntax-highlighting perhaps?
>
> If you do "bindkey -M viopp iw", you should see:
> "iw" select-in-word
> And if you do "zle -lL select-in-word", you should get nothing. If you
> do get something, it is likely that select-in-word has been redefined.
>
> The trouble is that internally, one function handles all of iw, iW, aw
> and aW. It is checking whether the invoked widget is select-in-word. But
> if you've redefined that, the check returns false and you get iW
> (select-in-blank-word) behaviour.
>
> I think this has been fixed in a6135f6 (41191) which is in zsh 5.4.
>
> I'm not quite sure of how to remove the custom select-in-word widget
> other than by disabling the entire plugin. zle -D select-in-word seems
> to cause other problems. If I run that after sourcing
> zsh-syntax-highlighting, I can get a seg fault, including with 5.5.
>
> Oliver
>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author