bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bind allows "impossible" key bindings without warning


From: Koichi Murase
Subject: Re: bind allows "impossible" key bindings without warning
Date: Sat, 4 Jan 2025 01:29:09 +0900

2025年1月4日(土) 1:04 Hauke Laging <mailinglisten@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

[Prev in Thread] Current Thread [Next in Thread]