You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, I am struggling with the preview. If I understand correctly, ripgrep-all has the preprocessor inbuilt, and the output is passed to the fzf pane, while the actual preview is shown in that pane by rga.
Is there any way I can get fzf to use that preprocessor, without writing a similar wrapper for fzf from scratch? I'm guessing the answer might be no, given something like --preview 'rga --pretty {q} {1}' would only show exact matches, so I suppose you'd need to go somehow from the fzf query to a regex. Potentially one could exact-match for the matching substring in the given fzf result...?
As you can see above, I've been trying to use pistol, too. Great for other filetypes, but no way to jump to matches in PDF...
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
Awesome tool. Sometimes, though, I want to fuzzy search stuff.
There is the following script that allows you to switch between an fzf and a ripgrep prompt, which I have modified to use ripgrep-all:
However, I am struggling with the preview. If I understand correctly, ripgrep-all has the preprocessor inbuilt, and the output is passed to the fzf pane, while the actual preview is shown in that pane by rga.
Is there any way I can get fzf to use that preprocessor, without writing a similar wrapper for fzf from scratch? I'm guessing the answer might be no, given something like
--preview 'rga --pretty {q} {1}'
would only show exact matches, so I suppose you'd need to go somehow from the fzf query to a regex. Potentially one could exact-match for the matching substring in the given fzf result...?As you can see above, I've been trying to use
pistol
, too. Great for other filetypes, but no way to jump to matches in PDF...Thanks for any advice/help!
Beta Was this translation helpful? Give feedback.
All reactions