far.vim
far.vim copied to clipboard
Fardo does nothing when the search pattern has a word boundary
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
ackas well as the defaultvimgrep, regardless of whether I use\>or\b. -
It would be great if there were a whole-word option, like
-Win ctrlsf.vim, since renaming a function or searching for all its call sites are such common operations.
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.
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!