Zsh Mailing List Archive
Messages sorted by:
Re: [vi-mode] widgets for case manipulation: `gU` and `U` in visual mode
- X-seq: zsh-users 21695
- From: Filipe Silva <filipe.silva@xxxxxxxxx>
- To: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- Subject: Re: [vi-mode] widgets for case manipulation: `gU` and `U` in visual mode
- Date: Wed, 22 Jun 2016 12:28:24 -0300
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=0/p1XmptfB2gk3pABrCU3Fk1xDsesn7syzin8qPkedU=; b=kr1mIzJh5pnOWpSEKla61CvayBacVhLjWtAR02VaXqx+8mxUCJCI0BuFgO0sQiZLOp YBf5ZYn1l6+kuW/BXwmqPJjkBA6w2+zGMq5h6q3BP6vcqIULNwW8hTGVUIBw4yYViVsS TQ7MlhrI/VRyHpARwFxue/RetB76Nw9mXcwRB4rddA1+t501R3X5P8/KOY5sdgklr3pe O0mDrGN44bdF46LgIYUO+rV2miE44CzJGb4GoVht8X/CF05/WY77Rx/fErV20xQWwENq EtVLAYFjibvnkVv2aMLLMmWliPIZEGdquvF2oR2SJ2o0iCtQoOefozICx8ylB2fzE2XR ir/Q==
- In-reply-to: <CAEwkUWPHhDKyzfAUmZaTFGcaW3NOyE_uWTR4Nk1KD0=8jgiFhA@mail.gmail.com>
- List-help: <mailto:firstname.lastname@example.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:email@example.com>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAEwkUWMnBO7_6EOo5y5b1eMAZB6uXkgXsh51OqtuEbbUQQPRyQ@mail.gmail.com> <firstname.lastname@example.org> <160621234233.ZM10369@torch.brasslantern.com> <CAEwkUWM0O2Wzh1rYPUK4HU3P5MxZHJnA-5NT+Mow_3oMQbtwag@mail.gmail.com> <CAEwkUWNw=oYJs7NV7c8ZTQp+j6CHrtUsDEcMaH+vVVWpdEof_w@mail.gmail.com> <email@example.com> <CAEwkUWPHhDKyzfAUmZaTFGcaW3NOyE_uWTR4Nk1KD0=8jgiFhA@mail.gmail.com>
"If this is the problem, it has also been fixed in newer versions by
making it continue waiting for further keys if the keys typed so far,
such as y, correspond to a widget, such as vi-yank, that needs to wait
for a movement. This also allows tricks like
bindkey -a -s 'cw' 'dwi'
to work much as the equivalent vi map."
What recent versions would those be? since 5.2?
On Wed, Jun 22, 2016 at 12:25 PM, Filipe Silva <filipe.silva@xxxxxxxxx>
> Hum, I had this as the first lines of my plugin
> # no delays for mode switching.
> export KEYTIMEOUT=1
> I guess I would have to type really fast for `ys` to work with this
> On Wed, Jun 22, 2016 at 12:09 PM, Oliver Kiddle <okiddle@xxxxxxxxxxx>
>> Filipe Silva wrote:
>> > for instance, the `ys` chord is not being picked up.
>> > supose i have a word: `abcde` and the cursor is in `c`. if I'm in
>> > normal mode and type `ys` zle thinks that I've hit `s` and deletes the
>> > `c` character and puts me in insert mode.
>> > Maybe it's a bug?
>> I think this occurs if you don't type ys fast enough. What have you got
>> $KEYTIMEOUT set to? Try typing the ys especially fast. And perhaps try
>> binding ys to something that will be obvious like kill-whole-line to see
>> if it is surround that is failing or the key binding.
>> If this is the problem, it has also been fixed in newer versions by
>> making it continue waiting for further keys if the keys typed so far,
>> such as y, correspond to a widget, such as vi-yank, that needs to wait
>> for a movement. This also allows tricks like
>> bindkey -a -s 'cw' 'dwi'
>> to work much as the equivalent vi map.
>> Similarly, I can define
>> bindkey -s -a "gUU" "gUgU"
>> but because vi-uppercase is not a builtin widget, I need to hit the keys
>> fast even in 5.2.
>> > On Wed, Jun 22, 2016 at 10:19 AM, Filipe Silva <filipe.silva@xxxxxxxxx>
>> > wrote:
>> > > I've fixed the bug including the following condition:
>> Thanks for that!
Messages sorted by: