Zsh Mailing List Archive
Messages sorted by:
Re: [vi-mode] widgets for case manipulation: `gU` and `U` in visual mode
- X-seq: zsh-users 21693
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: Filipe Silva <filipe.silva@xxxxxxxxx>
- Subject: Re: [vi-mode] widgets for case manipulation: `gU` and `U` in visual mode
- Date: Wed, 22 Jun 2016 17:09:42 +0200
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1466608183; bh=fTcgzGMf+uh/bBkZ60r+tiJ5sw91S7sfUIGy1X/3yuI=; h=cc:In-reply-to:From:References:To:Subject:Date:From:Subject; b=guBBKIt+1sRq9pj0JZW+NYmGX4OQToCPs4cnvsXz0It2v6LY3Li3w8QL1FvcFsaBHrgYUZyTmIRTATqBGWsIeCU2vFPHNHS22nM0JjIGDZDUayUb5BuJ/x7tvmrTRFc/MW3rPYtcA7oNZZS4ZHGHA6E49qYALO6lYKKC25G6FY7WbR6Z81w44Tir/S9dM/XXn4GQqRoIVaCwxSs5/jSrMTXH3KwXxabpyfjC5kFLw8br83RL5HTpYUX24k6V+BwI/jwnZdyNYQl3L2yolLs6V50rPu0fr4UnLD9XiasaUwUl4JGXgR9J3dTMfNEJtAfPBb9xChemVa3k6dOQqkZtBQ==
- In-reply-to: <CAEwkUWNw=oYJs7NV7c8ZTQp+j6CHrtUsDEcMaH+vVVWpdEof_w@mail.gmail.com>
- List-help: <mailto:email@example.com>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:firstname.lastname@example.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAEwkUWMnBO7_6EOo5y5b1eMAZB6uXkgXsh51OqtuEbbUQQPRyQ@mail.gmail.com> <email@example.com> <160621234233.ZM10369@torch.brasslantern.com> <CAEwkUWM0O2Wzh1rYPUK4HU3P5MxZHJnA-5NT+Mow_3oMQbtwag@mail.gmail.com> <CAEwkUWNw=oYJs7NV7c8ZTQp+j6CHrtUsDEcMaH+vVVWpdEof_w@mail.gmail.com>
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>
> > I've fixed the bug including the following condition:
Thanks for that!
Messages sorted by: