dacap / keyfreq

Track Emacs commands frequency
320 stars 25 forks source link

feature : add keyfreq-excluded-regex to support regex-form #28

Closed liuyinz closed 3 years ago

liuyinz commented 3 years ago

For example,set

(setq keyfreq-excluded-regexp '("\\`evil-.*\\'"
                                  "\\`company-.*\\'"
                                  "\\`minibuffer-.*\\'"
                                  "\\`mouse-.*\\'"
                                  "\\`isearch-.*\\'"
                                  "\\`vertico-.*\\'"
                                  "\\`backward-.*\\'"
                                  "\\`y-or-n-p-.*\\'"
                                  ))

to exclude evil- company- etc

dacap commented 3 years ago

Hi @liuyinz, I gave a try to this patch but it looks like it's ignoring all commands if the keyfreq-excluded-regexp is empty/has the default value. Is this possible?

liuyinz commented 3 years ago

yes, indeed ! Let me have a look.

liuyinz commented 3 years ago

Hi @liuyinz, I gave a try to this patch but it looks like it's ignoring all commands if the keyfreq-excluded-regexp is empty/has the default value. Is this possible?

now try again . Test is okay here.

dacap commented 3 years ago

Thanks @liuyinz, I've just merged your PR.