2025年1月4日(土) 1:04 Hauke Laging <mailinglis...@hauke-laging.de>:
> Currently you can bind key sequences which (in that situation) cannot be
> activated.

You can activate it by setting a longer time to keyseq-timeout.

$ bind 'set keyseq-timeout 1000'
$ bind '"\C-h": "hello"'
$ bind '"\C-hw": "world"'

With this setup, you can press C-h and wait for 1000 milliseconds to
input "hello", or you can quickly press C-h and w in order, to insert
"world".

More practical usage would be e.g. simultaneous key combinations
similar to key-chord.el or vim-arpeggio.

If Bash starts to output warning messages, it would be annoying for
the users who intentionally set up keybindings with a timeout.

--
Koichi

Reply via email to