Revert "Include zettelkasten files in Org agenda searches"

It's too slow :(

This reverts commit 902e205e7e.
This commit is contained in:
Daniel Borchmann 2024-07-10 14:25:45 +02:00
parent ad8aa0fda8
commit 7e763d82ea
No known key found for this signature in database
GPG Key ID: 784AA8DF0CCDF625

11
init.el
View File

@ -1114,16 +1114,7 @@ quickly loose their meaning."
(fset 'recenter 'identity)
(unwind-protect
(apply actual-agenda-redo r)
(fset 'recenter old-recenter))))
(define-advice org-search-view (:around
(func &rest args)
find-in-org-roam-files)
"When searching through Org items, also include `org-roam' files when available."
(let ((org-agenda-text-search-extra-files (append org-agenda-text-search-extra-files
(when (require 'org-roam nil :no-error)
(org-roam-list-files)))))
(apply func args)))))
(fset 'recenter old-recenter))))))
;; Capturing