mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-18 00:03:39 -05:00
FZF_KEY enhancements
* 'enter' instead of 'ctrl-m' * 'space' instead of ' '
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user