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.
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