diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2015-06-18 02:27:50 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2015-06-18 02:27:50 +0900 |
| commit | 5e8d8dab824524b83e7146d8ee583dab5e796a95 (patch) | |
| tree | e61a30fa32e21c515335a8ffb95843aa7175c2f0 /src | |
| parent | b504c6eb39d1327235a5897bb446284ce393b8fe (diff) | |
| download | fzf-5e8d8dab824524b83e7146d8ee583dab5e796a95.tar.gz | |
More key names for --bind
Diffstat (limited to 'src')
| -rw-r--r-- | src/options.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/options.go b/src/options.go index 31a5c17a..8281ada4 100644 --- a/src/options.go +++ b/src/options.go @@ -298,12 +298,28 @@ func parseKeyChords(str string, message string, bind bool) []int { chord = curses.AltZ + int(' ') case "bspace": chord = curses.BSpace + case "alt-bs", "alt-bspace": + chord = curses.AltBS case "tab": chord = curses.Tab case "btab": chord = curses.BTab case "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 { |
