It would be very useful to have a user-friendly way to get an overview of the currently defined keyboard shortcuts. In other words, given the
"\e[A": history-search-backward "\e[11~": backward-word
"\e[A": kill-word "\e\eOD": backward-word
it shouldn't be necessary to go through both files to figure out that
\e[A has been overridden, that there are two alternative shortcuts for
\e\eOD means ... whatever it means, and that
kill-word actually means to delete to the end of the current (or next) word. The ideal solution would print something like
Delete until next word boundary: Meta-A Go to the previous word boundary: F1; Ctrl-Left Search history backwards: Meta-Up
(Hopefully someone with a better understanding of escape sequences can fix the shortcuts.)
Is there a Linux program to print this?
I'm guessing such a program might be OS, kernel, or even keyboard-dependent, so maybe it would need extensive configuration (a program which polls the user via
xev to press miscellaneous keys to establish which escape sequences are really sent, for example), but that would be an acceptable price to finally understand how to use terminal shortcuts efficiently.