armindarvish / consult-web

Powerful Web and Omni Search inside Emacs
https://github.com/armindarvish/consult-web
86 stars 6 forks source link

Add `consult-notes-search-in-all-notes` as a local source, or any configurable ripgrep local search. #28

Closed chemtov closed 5 months ago

chemtov commented 5 months ago

Hi,

thanks again for this project and the very nice write up associated with it.

Is your feature request related to a problem? Please describe.

I want to be able to search local notes directories which are not necessarily associated with denote or org-roam.

Describe the solution you'd like

Ideally the results from consult-notes-search-in-all-notes could be a source. The alternative would be a to be able to have a (consult-ripgrep sources) where sources is a list of directories.

Regards,

armindarvish commented 5 months ago

@chemtov, The feature you are requesting would indeed be useful. We need a general solution so we can combine any sync and async sources in a multi-source search. There is already some effort in the async branch to support this (see #17), and so far we can combine sync and async sources that use elisp but not yet an async source that uses a shell command (like ripgrep). This requires some more hacking (and reinventing) of the consult-async process, and will take some time before I can support this in the package.

I am closing this issue now, because #17 will cover this one as well.