[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bash readline remap ESC insert/command mode key

From: Roger
Subject: Re: Bash readline remap ESC insert/command mode key
Date: Mon, 23 Jan 2012 04:52:17 -0900
User-agent: Mutt/1.5.21 (2010-09-15)

> On Sun, Jan 22, 2012 at 04:52:06PM -0500, Chet Ramey wrote:
>On 1/22/12 7:35 AM, Roger wrote:
>>> On Sat, Jan 21, 2012 at 09:17:32PM -0500, Chet Ramey wrote:
>>> I could look at putting in some sort of inter-character timeout, but I
>>> don't know yet how well the code structure lends itself to that.
>Pretty easily, as it turns out.  The attached patch adds a half-second
>timeout to the key sequence code.  Please let me know whether or not it
>works for you.

Patch seems to work great and I can now type 'exit' without command mode
being spawned when typing the 'i'.

It's behaviour is almost identical to VIM's.

A little more indepth examination, and I can see VIM's wait is approximately 
double of what the readline patch's wait time is.  However, I think the shorter 
wait time is more functional as when typing a double char, it in no way takes 
as long as VIM's wait time unless you type the same char with your finger and 
then use a toe to type the second char.

Matter of fact, I'm starting to find VIM's long wait time length a little 
annoying.  ;-)

Great job at guessing the wait time!


reply via email to

[Prev in Thread] Current Thread [Next in Thread]