Probably not so popular in this monorepo days but project.el supports setting one or more external roots to grep and find files into just like if they belonged to the main project. See project-or-external-find-file and project-or-external-find-regexp .
It would be nice if consult would honor this setting and extend find and grep commands to external roots if set.
This is mostly an enhancement, at the moment I'm getting the desired effect with (this actually discards the dir argument but works for me as I'm using it only for projects anyway):
Probably not so popular in this monorepo days but project.el supports setting one or more external roots to grep and find files into just like if they belonged to the main project. See
project-or-external-find-file
andproject-or-external-find-regexp
.It would be nice if consult would honor this setting and extend find and grep commands to external roots if set.
This is mostly an enhancement, at the moment I'm getting the desired effect with (this actually discards the dir argument but works for me as I'm using it only for projects anyway):