On 7/31/23 11:51 AM, G. Branden Robinson wrote:
At 2023-07-31T09:30:30-0400, Chet Ramey wrote:
Rather than embed more and more shell-specific output formats that
readline doesn't parse into readline itself, I'm more inclined to add
a hook to allow an application to print the value of a key binding
itself.
[...]
This would allow us, for instance, to really go wild and make `bind
-X' display a series of `bind -x' commands to recreate the macro
bindings.
I'm unlikely to be doing any of the work, but big +1 on this. This
would be a valuable inspection and troubleshooting tool. ("What does
bash _think_ I've got bound to this?")
`bind -X' already displays the key sequence and value, just without the
leading `bind -x' to make it really reusable. The default macro printer
displays macro bindings in a way that allows you to put them into an
inputrc file, but you're not doing that with `bind -x' anyway.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU c...@case.edu http://tiswww.cwru.edu/~chet/