diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2022-12-10 22:42:56 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2022-12-10 22:42:56 +0900 |
commit | 0ad30063ff8f96eb311bf502056b96644216ad60 (patch) | |
tree | df6eccd8659cf3a67680eae6f1f1dfdd94b3018a /src/options.go | |
parent | 7812c64a31981ab8a940971069d59288a7d0e7dd (diff) |
Rename previous-history to prev-history
previous-history is still supported for backward compatibility
Diffstat (limited to 'src/options.go')
-rw-r--r-- | src/options.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/options.go b/src/options.go index b3724663..eceeffa2 100644 --- a/src/options.go +++ b/src/options.go @@ -1060,8 +1060,8 @@ func parseKeymap(keymap map[tui.Event][]*action, str string) { appendAction(actHalfPageUp) case "half-page-down": appendAction(actHalfPageDown) - case "previous-history": - appendAction(actPreviousHistory) + case "prev-history", "previous-history": + appendAction(actPrevHistory) case "next-history": appendAction(actNextHistory) case "toggle-preview": @@ -1805,7 +1805,7 @@ func postProcessOptions(opts *Options) { // Default actions for CTRL-N / CTRL-P when --history is set if opts.History != nil { if _, prs := opts.Keymap[tui.CtrlP.AsEvent()]; !prs { - opts.Keymap[tui.CtrlP.AsEvent()] = toActions(actPreviousHistory) + opts.Keymap[tui.CtrlP.AsEvent()] = toActions(actPrevHistory) } if _, prs := opts.Keymap[tui.CtrlN.AsEvent()]; !prs { opts.Keymap[tui.CtrlN.AsEvent()] = toActions(actNextHistory) |