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
This commit is contained in:
Junegunn Choi
2017-05-22 17:07:05 +09:00
parent 3a5086796d
commit e1e3339770
5 changed files with 35 additions and 0 deletions

View File

@@ -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":