nvim-telescope / telescope-fzf-native.nvim

FZF sorter for telescope written in c
1.4k stars 46 forks source link

Anyone figured out why this makes in file text grepping so slow? #98

Closed partounian closed 1 year ago

partounian commented 1 year ago

Is it possible to turn off fuzzy finding just for live_grep?

Conni2461 commented 1 year ago

live_grep doesnt use a sorter so it has no fuzzy finding functionality! Each prompt change goes directly to the rg command and the output gets displayed.

If you want something equivalent to :Rg you should look into :Telescope grep_string search= which then does use a sorter (e.g. fzf-native)

partounian commented 1 year ago

Woah, interesting.

Then I wonder why live_grep using rg searches through files that rg is supposed to ignore? (I see results from .git and other folders that I added to my home dir's .ignore or .gitignore)

I'll look into using grep_string and seeing if that performs differently, thanks!

partounian commented 1 year ago

This fixed my issues https://github.com/Allaman/nvim/commit/f5615bd40beaeba85ead20176d5e03b19aa42a3e