allow configuring the escape delay timeout

Introduce a "fish_escape_delay_ms" variable to allow the user to configure the
delay used when seeing a bare escape before assuming no other characters will
be received that might match a bound character sequence. This is primarily
useful for vi mode so that a bare escape character (i.e., keystroke) can
switch to vi "insert" to "normal" mode in a timely fashion.
This commit is contained in:
Kurtis Rader
2016-01-14 21:46:53 -08:00
parent 6969cfab3d
commit 4b9fece9f4
5 changed files with 145 additions and 54 deletions

View File

@@ -1,4 +1,8 @@
vi replace line success
vi transpose words success
vi mode replace success
emacs success
vi replace line: default escape timeout
vi transpose words: default escape timeout
vi mode replace: default escape timeout
vi replace line: shortened escape timeout
vi normal mode: shortened escape timeout
emacs transpose words: no escape delay
emacs transpose words: short escape delay
emacs transpose words: long escape delay