rg.el
rg.el copied to clipboard
Toggle "word mode"
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.
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
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"?