bug-bash
[Top][All Lists]
Advanced

[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 16:22:00 -0900
User-agent: Mutt/1.5.21 (2010-09-15)

> On Mon, Jan 23, 2012 at 04:52:17AM -0900, Roger wrote:
>> 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.

Found a bug.

Think this timing patch is omitting readline support on reverse history search. 
 
ie:

<ctrl+r> and try typing "ping"

The display will only show "png"


There seems to be more then one spot the timing patch needs to apply.

-- 
Roger
http://rogerx.freeshell.org/



reply via email to

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