From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15608 invoked by alias); 22 Jun 2016 15:25:14 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 21694 Received: (qmail 21310 invoked from network); 22 Jun 2016 15:25:12 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 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=5y4PgxHvh2pJlNqQftRDrZG/8IreKqquEDNAJqc9oz4=; b=SMbDnuK321GZDzUVQGHNwxQjR7lkHarsvCDDytTyKQF348Lj6epU2yCdij6MbdUczs I5EI5f5D1o9N33+UL+vdMpbGHjuywCD98Y8KBR7wZjjdZkrFsm+J22P0KHG0T60j4F43 2aoG4KtQll+zvnvMUKqIcnOi9HQr9J0NicS2lxRppxV520crJ9NLxjo04HHaqOKepUV6 XK/hh3KdU6zRIf2uL7svYQGy2UdTSAVOyPQSwA365MpNqOOwFBjeoPtJYiLVQfQTIUVx DHJ3UGTQO4OvcuEVwM7nxBkhQ4zh8QujEFirOqQRf47e4GI+dcdHDFQRjPv/83n/Cb7B VyQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=5y4PgxHvh2pJlNqQftRDrZG/8IreKqquEDNAJqc9oz4=; b=BEK7w1RZ6Lh6SP5MacywplrtcsPcMWvQdQk5y48zfPyoLzvsA9DOLm+lXBNzn5u7U6 b80/IdyQVCXcm5Zww67StXp9ixGdVDoapFCvvuuaSys1eISoFCNQHle0nNilBr99LtyK ye5XmrQf+eEZRSiGI+A7fC1SX0LwpvtBzevxriEOy8MuOGW/G0UE7fEESc0ES/aabmk2 SQBmk/W4AJFa1kCPtc27UEnisbjQoSWk44rbJ6aeT3aLZ3oXPMLspotSmeVsDQzl827v tglPlDuAGETcNQlfo6Z8+t8sPVMZ85icj6666+acivjkU6pCGe6oIwcscV5tZJtxpCiW yuxA== X-Gm-Message-State: ALyK8tItkK+d8ZBCmsggZgiY3aqpaenCs0gKsm35Y0FIYMk6/EJSTE4D8qYt84bErtKLgXPpZ8YFaqXf2l7yeg== X-Received: by 10.202.2.7 with SMTP id 7mr2009547oic.155.1466609111148; Wed, 22 Jun 2016 08:25:11 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <25350.1466608182@thecus.kiddle.eu> References: <21997.1466550647@thecus.kiddle.eu> <160621234233.ZM10369@torch.brasslantern.com> <25350.1466608182@thecus.kiddle.eu> From: Filipe Silva Date: Wed, 22 Jun 2016 12:25:10 -0300 Message-ID: Subject: Re: [vi-mode] widgets for case manipulation: `gU` and `U` in visual mode To: Oliver Kiddle Cc: zsh-users@zsh.org Content-Type: multipart/alternative; boundary=001a1137b4e0182cca0535df8bfa --001a1137b4e0182cca0535df8bfa Content-Type: text/plain; charset=UTF-8 Hum, I had this as the first lines of my plugin # no delays for mode switching. export KEYTIMEOUT=1 https://github.com/ninrod/nin-vi-mode/blob/master/nin-vi-mode.plugin.zsh#L1-L2 I guess I would have to type really fast for `ys` to work with this configuration. On Wed, Jun 22, 2016 at 12:09 PM, Oliver Kiddle wrote: > 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 > > wrote: > > > I've fixed the bug including the following condition: > > Thanks for that! > > Oliver > --001a1137b4e0182cca0535df8bfa--