From 32234be7a271196b62689974bf2002034f7e712e Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 2 Feb 2025 01:48:52 +0900 Subject: FZF_KEY enhancements * 'enter' instead of 'ctrl-m' * 'space' instead of ' ' --- src/options.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/options.go') diff --git a/src/options.go b/src/options.go index 2b91fbf7..99d58634 100644 --- a/src/options.go +++ b/src/options.go @@ -885,7 +885,7 @@ func parseKeyChordsImpl(str string, message string) (map[tui.Event]string, error case "right": add(tui.Right) case "enter", "return": - add(tui.CtrlM) + add(tui.Enter) case "space": chords[tui.Key(' ')] = key case "backspace", "bspace", "bs": @@ -3220,7 +3220,7 @@ func postProcessOptions(opts *Options) error { // If 'double-click' is left unbound, bind it to the action bound to 'enter' if _, prs := opts.Keymap[tui.DoubleClick.AsEvent()]; !prs { - opts.Keymap[tui.DoubleClick.AsEvent()] = opts.Keymap[tui.CtrlM.AsEvent()] + opts.Keymap[tui.DoubleClick.AsEvent()] = opts.Keymap[tui.Enter.AsEvent()] } // If we're not using extended search mode, --nth option becomes irrelevant -- cgit v1.2.3