-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exclude org-roam-dailies pages from consult-notes command #58
Comments
Part of the function (add-to-list 'consult-notes-all-sources 'consult-notes-org-roam--nodes 'append)
(add-to-list 'consult-notes-all-sources 'consult-notes-org-roam--refs 'append) Have you tried adding advice to the minor mode to remove from |
Would you give me a hand with that? I had a go at: But that doesn't seem to do it. The output of |
I don't have org-roam to test this but @deadcombo I think what you'll need to do is modify the lambdas for :items to filter out nodes or refs based on their file location. So you'll want to swap in this: :items ,(lambda ()
(let* ((nodes (org-roam-node-read--completions))
(filtered-nodes (seq-filter (lambda (node)
(not (string-prefix-p org-roam-dailies-directory
(org-roam-node-file (cdr node)))))
nodes)))
(mapcar #'org-roam-node-title (mapcar #'cdr filtered-nodes))))
for what is there in |
Hello,
I use the
org-roam
configuration you demonstrate in the readme.I use
org-roam-dailies
a lot which means I have hundreds of daily files. This is cumbersome when callingconsult-notes
, the files are named with dates and there are a lot of them.How can I exclude
org-roam-dailies-directory
from theconsult-notes
command?I'd still like them to be covered by
consult-notes-search-all-notes
, just not theconsult-notes
.The text was updated successfully, but these errors were encountered: