far.vim icon indicating copy to clipboard operation
far.vim copied to clipboard

Fardo does nothing when the search pattern has a word boundary

Open jliptrap opened this issue 6 years ago • 2 comments

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 default vimgrep, 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.

jliptrap avatar Nov 22 '19 22:11 jliptrap

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.

hbarcelos avatar Apr 24 '20 17:04 hbarcelos

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!

jliptrap avatar Apr 24 '20 22:04 jliptrap