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
I'm trying to leverage the grep_visual_selection function to grep based on a selection in a given buffer.
However, I work in a very deeply pathed project such that I cannot see the full file paths of the options presented.
I want to be able to either shorten the paths when that case arises, or modify how the preview is presented or whatever it takes so that I can see both the preview and the full file paths.
In the description you can see that I have some defaults set for things like layout_config and theme. It would be awesome to be able to pass these in as args to override these defaults for a given invocation of grep_visual_selection
Can you list the options you want grep_visual_selection to forward?
search_dirs or grep_open_files would be a good start. That way I can have two visual mode keymaps; one for searching selection in open files and one for searching across the whole project.
Right now I can only do the latter out of the box.
I'm trying to leverage the
grep_visual_selection
function to grep based on a selection in a given buffer.However, I work in a very deeply pathed project such that I cannot see the full file paths of the options presented.
I want to be able to either shorten the paths when that case arises, or modify how the preview is presented or whatever it takes so that I can see both the preview and the full file paths.
Here is what I'm using now as a mapping:
and here's how I have
telescope-live-grep-args
configured in myinit.lua
The text was updated successfully, but these errors were encountered: