Key specifiers
Key specifiers are strings that have a special meaning to functions like key/bind. They are a shorthand for the arcane byte sequences actually sent by your terminal when you enter these key combinations.
Want to bind the alt key? Read this.
cy
defines the following key specifiers:
Specifier | Notes |
---|---|
"ctrl+@" | |
"ctrl+a" | |
"ctrl+b" | |
"ctrl+c" | |
"ctrl+d" | |
"ctrl+e" | |
"ctrl+f" | |
"ctrl+g" | |
"ctrl+h" | |
"tab" | (this is what "ctrl+i" outputs) |
"ctrl+j" | |
"ctrl+k" | |
"ctrl+l" | |
"enter" or "return" | |
"ctrl+n" | |
"ctrl+o" | |
"ctrl+p" | |
"ctrl+q" | |
"ctrl+r" | |
"ctrl+s" | |
"ctrl+t" | |
"ctrl+u" | |
"ctrl+v" | |
"ctrl+w" | |
"ctrl+x" | |
"ctrl+y" | |
"ctrl+z" | |
"esc" | |
"ctrl+\\" | |
"ctrl+]" | |
"ctrl+^" | |
"ctrl+\_" | |
"backspace" | |
"up" | |
"down" | |
"right" | |
" " or "space" | |
"left" | |
"shift+tab" | |
"home" | |
"end" | |
"ctrl+home" | |
"ctrl+end" | |
"shift+home" | |
"shift+end" | |
"ctrl+shift+home" | |
"ctrl+shift+end" | |
"pgup" | |
"pgdown" | |
"ctrl+pgup" | |
"ctrl+pgdown" | |
"delete" | |
"insert" | |
"ctrl+up" | |
"ctrl+down" | |
"ctrl+right" | |
"ctrl+left" | |
"shift+up" | |
"shift+down" | |
"shift+right" | |
"shift+left" | |
"ctrl+shift+up" | |
"ctrl+shift+down" | |
"ctrl+shift+left" | |
"ctrl+shift+right" | |
"f1" | |
"f2" | |
"f3" | |
"f4" | |
"f5" | |
"f6" | |
"f7" | |
"f8" | |
"f9" | |
"f10" | |
"f11" | |
"f12" | |
"f13" | |
"f14" | |
"f15" | |
"f16" | |
"f17" | |
"f18" | |
"f19" | |
"f20" |