mirror of
https://github.com/junegunn/fzf.git
synced 2025-08-13 03:05:49 -07:00
More key names for --bind
This commit is contained in:
@@ -298,12 +298,28 @@ func parseKeyChords(str string, message string, bind bool) []int {
|
|||||||
chord = curses.AltZ + int(' ')
|
chord = curses.AltZ + int(' ')
|
||||||
case "bspace":
|
case "bspace":
|
||||||
chord = curses.BSpace
|
chord = curses.BSpace
|
||||||
|
case "alt-bs", "alt-bspace":
|
||||||
|
chord = curses.AltBS
|
||||||
case "tab":
|
case "tab":
|
||||||
chord = curses.Tab
|
chord = curses.Tab
|
||||||
case "btab":
|
case "btab":
|
||||||
chord = curses.BTab
|
chord = curses.BTab
|
||||||
case "esc":
|
case "esc":
|
||||||
chord = curses.ESC
|
chord = curses.ESC
|
||||||
|
case "del":
|
||||||
|
chord = curses.Del
|
||||||
|
case "home":
|
||||||
|
chord = curses.Home
|
||||||
|
case "end":
|
||||||
|
chord = curses.End
|
||||||
|
case "pgup", "page-up":
|
||||||
|
chord = curses.PgUp
|
||||||
|
case "pgdn", "page-down":
|
||||||
|
chord = curses.PgDn
|
||||||
|
case "shift-left":
|
||||||
|
chord = curses.SLeft
|
||||||
|
case "shift-right":
|
||||||
|
chord = curses.SRight
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if chord == 0 {
|
if chord == 0 {
|
||||||
|
Reference in New Issue
Block a user