zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh Users <zsh-users@zsh.org>
Subject: Re: [vi-mode] widgets for case manipulation: `gU` and `U` in visual mode
Date: Thu, 23 Jun 2016 15:37:44 -0700	[thread overview]
Message-ID: <CAH+w=7ZHJN5oc+b4JF9aOeQR43Ocxvr-t_Z4TtYL7OU57vs5ew@mail.gmail.com> (raw)
In-Reply-To: <CAEwkUWPjjxy6=J8-zwE3n-U6c35oAgA_vdg=GqJ+aSwFkc07cw@mail.gmail.com>

[I'm having some trouble connecting to my SMTP server from home,
so I'm pasting this into gmail.  Apologies if the formatting gets weird or
if a nearly-identical message appears later if things suddenly start
working again.]

On Wed, Jun 22, 2016 at 9:30 PM, Filipe Silva <filipe.silva@gmail.com> wrote:
>
> Having an ESCKEYTIMEOUT would be awesome. Setting KEYTIMEOUT to anything
> above 5 is quite noticeable and laggy when I want to return to normal mode.
> KEYTIMEOUT=1 is snappy, but then I lose out on the surround widget and
> whatnot because I can't type `ys` fast enough.

Try this:

    set-keytimeout() {
      case $KEYMAP in
      (vicmd) KEYTIMEOUT=5;;
      (*) KEYTIMEOUT=1;;
      esac
    }
    zle -N zle-keymap-select set-keytimeout
    zle -N zle-line-init set-keytimeout

That should give you a short timeout when switching from insert mode
to what you call "normal mode" (command mode), and a longer one when
you are in command mode.  Sadly, for reasons already noted, it won't
speed up using ESC in command mode for deactivate-region.


  parent reply	other threads:[~2016-06-23 22:37 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-21 18:51 Filipe Silva
2016-06-21 23:10 ` Oliver Kiddle
2016-06-22  6:42   ` Bart Schaefer
2016-06-22 13:19     ` Filipe Silva
2016-06-22 13:23       ` Filipe Silva
2016-06-22 15:09         ` Oliver Kiddle
2016-06-22 15:25           ` Filipe Silva
2016-06-22 15:28             ` Filipe Silva
2016-06-22 22:29               ` Oliver Kiddle
2016-06-23  4:30                 ` Filipe Silva
2016-06-23  5:28                   ` Bart Schaefer
2016-06-23 22:37                   ` Bart Schaefer [this message]
2016-06-22 19:10           ` Filipe Silva
2016-06-22 20:11             ` Oliver Kiddle
2016-06-22 20:19             ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAH+w=7ZHJN5oc+b4JF9aOeQR43Ocxvr-t_Z4TtYL7OU57vs5ew@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).