Add accept-non-empty action

'accept-non-empty' is similar to 'accept' (which is bound to 'enter' and
'double-click' by default) but it prevents fzf from exiting without any
selection.

Close #1162
This commit is contained in:
Junegunn Choi
2017-12-02 02:27:02 +09:00
parent 338a73d764
commit 5a7b41a2cf
4 changed files with 44 additions and 0 deletions

View File

@@ -662,6 +662,8 @@ func parseKeymap(keymap map[int][]action, str string) {
appendAction(actAbort)
case "accept":
appendAction(actAccept)
case "accept-non-empty":
appendAction(actAcceptNonEmpty)
case "print-query":
appendAction(actPrintQuery)
case "replace-query":