Mon-Ouie / coolline

Simple readline-like tool able to change representation of input
Other
82 stars 14 forks source link

vi keys #8

Open rking opened 12 years ago

rking commented 12 years ago

Cough 'em up!

rking commented 12 years ago

The core problem is here: https://github.com/Mon-Ouie/coolline/blob/master/lib/coolline/coolline.rb#L436

Since coolline accumulates anything following an Esc, you can't handle an Esc by itself.

Traditionally, programs that do try to map Alt+something (which becomes Esc + something) will implement a timeout of 100ms (or so) to distinguish between the two cases. I don't see how a timeout would be implemented in Coolline without breaking backwards compatibility.

Perhaps the answer is a "don't accumulate" option for the behavior. That would probably work for me. What do you think, Mon-Ouïe?

rking commented 12 years ago

https://github.com/rking/coolline/commit/c639c110cb71318a37ba0ef2d1ebd850855d2f68 # A bit of progress.

Still completely missing:

Plus it has a couple of handfuls of additional problems.

glittershark commented 10 years ago

:+1: