From e1e33397700573da6d6b4fbaff9ac71f10fa36ed Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Mon, 22 May 2017 17:07:05 +0900 Subject: Implement bindable "change" event and "top" action # Move cursor to the top result whenever the query string is changed fzf --bind change:top Close #925 --- src/options.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/options.go') diff --git a/src/options.go b/src/options.go index 8dd58f08..e9e2f28e 100644 --- a/src/options.go +++ b/src/options.go @@ -400,6 +400,8 @@ func parseKeyChords(str string, message string) map[int]string { chord = tui.BSpace case "ctrl-space": chord = tui.CtrlSpace + case "change": + chord = tui.Change case "alt-enter", "alt-return": chord = tui.CtrlAltM case "alt-space": @@ -714,6 +716,8 @@ func parseKeymap(keymap map[int][]action, str string) { appendAction(actDown) case "up": appendAction(actUp) + case "top": + appendAction(actTop) case "page-up": appendAction(actPageUp) case "page-down": -- cgit v1.2.3