Add "eof" action which closes the finder only when input is empty

Close #289
This commit is contained in:
Junegunn Choi
2015-07-22 22:56:53 +09:00
parent b53f61fc59
commit cc0d5539ba
5 changed files with 23 additions and 0 deletions

View File

@@ -499,6 +499,8 @@ func parseKeymap(keymap map[int]actionType, execmap map[int]string, toggleSort b
keymap[key] = actDeleteChar
case "end-of-line":
keymap[key] = actEndOfLine
case "eof":
keymap[key] = actEof
case "forward-char":
keymap[key] = actForwardChar
case "forward-word":