What I struggle with:
I'm configuring ~/.inputrc
file to be same as mine custom emacs key-bindings and I'm struggling very much with readline's key sequences.
What I mean by that is that if I want to set <up>
/ <down>
, I have to set it to "\e[A"
/ "\e[B"
How can I infer keyseq for <F1>..<F12>
or even if I want to bind something to let's say (kbd "C-x <M-f7>")
in emacs terminology (ie: to [control]+[x] [alt]+[f7]
be one keyseq)?
What I want:
Is there any command that tells me for certain key on keyboard what its escape sequence? If there isn't any command, is there any other resource (article/table/...) with some hints?
--> goal: replace <KEY SEQUENCE> with proper keyseq
"<f3>" : start-kbd-macro
"<S-f4>" : end-kbd-macro
"C-x <C-M-S-f4>" : dump-macro
"<f4>" : call-last-kbd-macro
... more keybindings ...