rg.el icon indicating copy to clipboard operation
rg.el copied to clipboard

Toggle "word mode"

Open wavexx opened this issue 3 years ago • 2 comments

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.

wavexx avatar Oct 05 '21 19:10 wavexx

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

dajva avatar Oct 06 '21 14:10 dajva

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"?

wavexx avatar Oct 07 '21 16:10 wavexx