dacap / keyfreq

Track Emacs commands frequency
320 stars 25 forks source link

Save command keys #35

Open psionic-k opened 7 months ago

psionic-k commented 7 months ago

I've often looked at this package and wondered why it seems very nearly useful.

The lack of data on key sequences seems to be a problem.

Implementation wise, for each command, we can just take the most recently seen sequence to be the sequence that binds the command.

This would only wildly alternate for commands we're not usually interested in, such as self-insert-command.

As a follow-up, it would be preferable if we could group commands by key sequences and thereby see which keys we use the most, aggregated over the commands the same sequence dispatches to.

forthrin commented 4 months ago

@dacap: +1

How does one get keystrokes into the statistics? Like here:

https://blog.binchen.org/posts/how-to-be-extremely-efficient-in-emacs.html

Curiously requested as #1 in 2012.