On 1/3/25 11:04 AM, Hauke Laging wrote:
This happened to me: I defined a key binding consisting of a control key and a regular key (C-h IIRC but that does not matter).
They're not impossible, simply ambiguous. Readline waits a half second for an additional disambiguating character by default. As Koichi said, you can increase that to whatever duration is comfortable for you.
The problem which took me quite some time to understand (because I never use C-h) was that a key binding for the first key already existed. That prevented the longer key sequence from being recognized. I suggest that bind detects this kind of problem (which should be very easy), does configure the new key binding (compatibility) but tells the user what the problem is (e.g. prints the conflicting binding).
People purposely use bindings like this all the time. -- ``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/
OpenPGP_signature.asc
Description: OpenPGP digital signature