How to filter filters using Snacks.picker.grep() ? #461
Answered
by
folke
robsonpeixoto
asked this question in
Q&A
-
Is there a way to filter by file name and/or path on the |
Beta Was this translation helpful? Give feedback.
Answered by
folke
Jan 15, 2025
Replies: 1 comment
-
From the ui:
A more performant way would be to start the picker with |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
robsonpeixoto
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From the ui:
function
.<c-g>
, this toggleslive
mode. Your search filter will switch.file:lua$
function
<c-G>
again to change the search filter, while the filename will also still be usedA more performant way would be to start the picker with
Snacks.grep({glob = "*.lua"})
.This will prefilll the file glob pattern for the ripgrep command.