~abcdw/rde-devel

feature: org-roam-todo: Remove org-roam-db-sync. v1 PROPOSED

Nicolas Graves: 1
 feature: org-roam-todo: Remove org-roam-db-sync.

 1 files changed, 0 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~abcdw/rde-devel/patches/44345/mbox | git am -3
Learn more about email & git

[PATCH] feature: org-roam-todo: Remove org-roam-db-sync. Export this patch

This should not be necessary since org-roam-db-autosync-enable is called in
feature-org-roam. The point of the dynamic agenda is to record files
with todo when they are written, not to parse them each time we use the
agenda.

Users can always run this manually if necessary. It makes a huge performance
difference on some setups (if your org-roam directory is arbitrarily large).
---
src/rde/features/emacs-xyz.scm | 1 -
1 file changed, 1 deletion(-)

diff --git a/src/rde/features/emacs-xyz.scm b/src/rde/features/emacs-xyz.scm
index db1b810a..b04879b3 100644
--- a/src/rde/features/emacs-xyz.scm
+++ b/src/rde/features/emacs-xyz.scm
@@ -4414,7 +4414,6 @@ olivetti package."

    (defun rde-org-roam-list-todo-files ()
      "Return a list of org-roam files containing the \"todo\" tag."
      (org-roam-db-sync)
      (let ((todo-nodes (cl-remove-if-not
                         (lambda (n)
                           (member "todo" (org-roam-node-tags n)))
-- 
2.41.0