I still need to find a satisfactory way to do “find in files” with vim. I use a custom script to call ag and it’s enough, but a bit clunky at times.
I still need to find a satisfactory way to do “find in files” with vim. I use a custom script to call ag and it’s enough, but a bit clunky at times.
You can use zsh's fzf-tab as a supercharged tab-completion. e.g. you can just do
some-command <TAB>
and it will put a fzf interface where the tab-completions would usually be, and you can pick whatever files you want. And if you instead do some-command -<TAB>
it will instead show you all the possible flags and their descriptions, which you can also pick from.I use this all the time on the terminal now. It cuts out so much pointless flow-breaking invocations of ls and man and --help.
For find and replace, I use spectre.
Does that work for you? I thought that's what a fuzzy finder is
I also use vim-grepper (mapped to leader-g) for finding in files and populating the quickfix list.
Does that work for you? I thought that's what a fuzzy finder is
If I wanted all occurrences of lines that match a pattern I'd use vim-grepper (which uses Ag or ripgrep under the hood) and search with a regex.
If you're using Telescope you can use your fuzzy search to find the lines you want then use <C-q> to send them to your quickfix list.
I imagine you have a similar approach, what's clunky about it for you?