summaryrefslogtreecommitdiff
path: root/src/options.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2025-02-02 01:48:52 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2025-02-02 02:23:47 +0900
commit32234be7a271196b62689974bf2002034f7e712e (patch)
treef4ccbb62e4b8780c1fddf8116374ceea0f36bfa0 /src/options.go
parent178b49832e09a78a9f8f5ce1647d5f36b667a097 (diff)
downloadfzf-32234be7a271196b62689974bf2002034f7e712e.tar.gz
FZF_KEY enhancements
* 'enter' instead of 'ctrl-m' * 'space' instead of ' '
Diffstat (limited to 'src/options.go')
-rw-r--r--src/options.go4
1 files changed, 2 insertions, 2 deletions
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