mclear-tools / consult-notes

Use consult to search notes
GNU General Public License v3.0
164 stars 15 forks source link

~consult-notes-sources~ does not search notes recursively #23

Closed whhone closed 1 year ago

whhone commented 1 year ago

Consider this setup with some subdir inside personal and work. The notes in subdir like personal/book could not be searched.

(setq consult-notes-sources
      `(("Personal"  ?p "~/sync/org/personal"))
        ("Work"  ?w "~/sync/org/work")))

Is it by design?

mclearc commented 1 year ago

This is by design. The basic consult-notes function (i.e. without any additional minor mode integration with denote or org-roam) simply presents a list of files in a directory (it uses (directory-files) to present the list of candidates). The list isn't recursive, but since consult-notes narrows by directory, simply put whatever directories you want in the list of sources, along with the relevant narrowing key.