dajva / rg.el

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

rg-define-toggle command does not re-run rg #42

Closed NimoTh closed 6 years ago

NimoTh commented 6 years ago

Hi,

I define w to toggle word-boundary searching using (rg-define-toggle "-w" "w"). However, when viewing rg results, pressing w has no effect on the command or the result. Pressing another predefined toggle, like c re-runs the rg command and also includes the -w flag.

The way I understand the documentation, defining custom toggles should behave just like pre-defined toggles, meaning the rg command is re-run with the flag set or unset.

rg version 20180522.1119

Cheers, Martin

dajva commented 6 years ago

Try the latest version. Should be fixed by know.

dajva commented 6 years ago

Please reopen if it's still a problem.