5 ms·
Thanks for the response. I would like to use fzf with rg to search file contents with a previewer open. However when I first open fzf I don't wish to pass any a
by thdhhghgbhy 1y ago
Thanks for the response. I would like to use fzf with rg to search file contents with a previewer open. However when I first open fzf I don't wish to pass any argument to rg, until I start typing. Something like Telescope live_grep.
- burntsushi 1y agoThat's more a question for fzf than for ripgrep. ripgrep doesn't have any interactive mode. You give it arguments and it runs. That's it. ripgrep doesn't have any mode where it waits for user input (unless it's waiting for stdin).
- tasuki 1y agoYou could have incorporated some snark or something, but no, you're always the most helpful you can be. You're very inspirational - thank you! (Also like thanks for ripgrep I guess?)
- thdhhghgbhy 1y ago>You could have incorporated some snark Why even say this?
- tasuki 1y agoIt was the first thing that came into my mind...
- CorrectHorseBat 1y agoCertainly possible with fzf, everything you need is in the fzf docs. Here's something in vimscript (sorry) that does that: https://github.com/Emilv2/siefe.vim/blob/8432406581acbf450b5f8bce17cb512be06fa247/autoload/siefe.vim#L546 https://github.com/Emilv2/siefe.vim/blob/8432406581acbf450b5...
- thdhhghgbhy 1y agoThanks. You've put some work into this.
- bombela 1y agoSimilar to other answers. With a nasty mix of vimscript generating shell commands for fzf to use, that's how I integrated rg and fd with "fzf.vim" in my neovim. https://github.com/bombela/fzf.vim.rgfd https://github.com/bombela/fzf.vim.rgfd Nasty, but it works hey!
- thdhhghgbhy 1y agoThank you, nice.