justbur / emacs-which-key

Emacs package that displays available keybindings in popup
GNU General Public License v3.0
1.74k stars 87 forks source link

Add timeout support #295

Open introom opened 3 years ago

introom commented 3 years ago

Is it possible to add timeout support so that when which-key display is idle for 3 second, it is automatically cancelled?

justbur commented 3 years ago

Yes, it's possible, but why would you want to remain idle in the middle of a key sequence? Or is this is another situation?

introom commented 3 years ago

Some special case though, such as tmux sending keys (C-l) to all panes to clear the pane. And it happened that emacs is running in some pane. We want to cancel the C-l.

justbur commented 3 years ago

But a which-key timeout won't cancel the key sequence. which-key is passive. It doesn't manipulate the key sequences