dajva / rg.el

Emacs search tool based on ripgrep
https://rgel.readthedocs.io
GNU General Public License v3.0
465 stars 38 forks source link

Toggle "word mode" #125

Open wavexx opened 2 years ago

wavexx commented 2 years ago

Would it be possible to have a toggle for rg's "word mode" / -w?

Sometimes when searching for an expression, I realize there are just too many substring matches and I'd like to turn on word-boundary mode for the current search, just like we do for ignore.

dajva commented 2 years ago

It's available in the menu (m) in the results buffer. If you want it as s real toggle look at https://rgel.readthedocs.io/en/2.1.0/configuration.html#function-rg-define-toggle

wavexx commented 2 years ago

Works great. Is there also any way to give it a name and show the state of the toggle on the header line, as shown for "case"?