diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2025-02-02 01:48:52 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2025-02-02 02:23:47 +0900 |
| commit | 32234be7a271196b62689974bf2002034f7e712e (patch) | |
| tree | f4ccbb62e4b8780c1fddf8116374ceea0f36bfa0 /src/tui/tui.go | |
| parent | 178b49832e09a78a9f8f5ce1647d5f36b667a097 (diff) | |
| download | fzf-32234be7a271196b62689974bf2002034f7e712e.tar.gz | |
FZF_KEY enhancements
* 'enter' instead of 'ctrl-m'
* 'space' instead of ' '
Diffstat (limited to 'src/tui/tui.go')
| -rw-r--r-- | src/tui/tui.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tui/tui.go b/src/tui/tui.go index 8423c631..265d3cff 100644 --- a/src/tui/tui.go +++ b/src/tui/tui.go @@ -28,7 +28,7 @@ const ( CtrlJ CtrlK CtrlL - CtrlM + Enter CtrlN CtrlO CtrlP @@ -160,6 +160,9 @@ func (e Event) KeyName() string { switch e.Type { case Rune: + if e.Char == ' ' { + return "space" + } return string(e.Char) case Alt: return "alt-" + string(e.Char) |
