nvim-telescope / telescope.nvim

Find, Filter, Preview, Pick. All lua, all the time.
MIT License
15.98k stars 837 forks source link

Search inside monorepo #2303

Open andresatierf opened 1 year ago

andresatierf commented 1 year ago

Is your feature request related to a problem? Please describe. I work with a monorepo and when inside a sub-project, I can't search for/in files in other projects in the monorepo.

Describe the solution you'd like I would like for telescope to work across the projects inside the monorepo. Maybe recursively find parent folders with .git folder or a .editorconfig with root = true

Describe alternatives you've considered

Additional context

64 commented 1 year ago

live_grep already supports passing a cwd argument, which should be sufficient to solve your problem

andresatierf commented 1 year ago

That is a solution to my problem, but I still feel that this could be a useful addition. it's a bit cumbersome to always run the command this way. .editorconfig files already have a root = true/false line. that could be used to determine the cwd of the live_grep or other searchers. if this is not something that the devs consider to have some value, then feel free to close this issue

marcesengel commented 1 year ago

Totally agree, is there documentation how the cwd is determined by default?

jamestrew commented 1 year ago

telescope is using neovim's LibUV lua binding vim.loop.cwd() to get the default cwd for pickers.