Fardo does nothing when the search pattern has a word boundary
jliptrap opened this issue · 2 comments
jliptrap commented
Repro
echo "Hello." > hello.txt
nvim
:Far Hello\> hi hello.txt
:Fardo
Log per the :h far-bugs
instructions: far.vim.log
Workaround
:let g:far#source = 'ack'
:Far Hello(\W) hi\1 hello.txt
Remarks
-
This bug doesn't seem to depend on the backend; it's present using
ack
as well as the defaultvimgrep
, regardless of whether I use\>
or\b
. -
It would be great if there were a whole-word option, like
-W
in ctrlsf.vim, since renaming a function or searching for all its call sites are such common operations.
hbarcelos commented
I second this.
I'm using ripgrep
as source.
Both :F
and :Far
are able to find the respective lines, however :Fardo
fails for all lines.
jliptrap commented
Now that we have :Farf
and :Farr
, I just use them instead of :Far
, since they support whole-word search.
BTW I really appreciate far.vim
, it's a huge timesaver!