Skip to content
Myr

More key names for --bind

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent b504c6e · Browse files · 1 file+16 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+16 added−0 removed

  • other:+16 added−0 removed

1 file+16 added−0 removed

modified:src/options.go+16 added
296 unmodified lines
297 case "space":298 chord = curses.AltZ + int(' ')299 case "bspace":300 chord = curses.BSpace301 case "alt-bs", "alt-bspace":302 chord = curses.AltBS303 case "tab":304 chord = curses.Tab305 case "btab":306 chord = curses.BTab307 case "esc":308 chord = curses.ESC309 case "del":310 chord = curses.Del311 case "home":312 chord = curses.Home313 case "end":314 chord = curses.End315 case "pgup", "page-up":316 chord = curses.PgUp317 case "pgdn", "page-down":318 chord = curses.PgDn319 case "shift-left":320 chord = curses.SLeft321 case "shift-right":322 chord = curses.SRight323 }324 }325 if chord == 0 {326 if len(key) == 6 && strings.HasPrefix(lkey, "ctrl-") && isAlphabet(lkey[5]) {
450 unmodified lines