From 467914a5568018f39f80d2a7c3ed94137c0f3e14 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Thu, 26 May 2022 01:31:24 -0700 Subject: [PATCH] [oni-org] Find projects in any of my agenda files --- oni-org/oni-org.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/oni-org/oni-org.el b/oni-org/oni-org.el index d6d6024..615c46b 100644 --- a/oni-org/oni-org.el +++ b/oni-org/oni-org.el @@ -818,7 +818,8 @@ This is an around advice for ‘org-html--svg-image’ as FUN." (defun oni-org-pick-project (property) (when (string= property "PROJECT") - (org-map-entries (lambda () (concat (buffer-name) ":" (mapconcat (lambda (x) x) (org-get-outline-path t) ":"))) "CATEGORY=\"project\""))) + (org-map-entries (lambda () (concat (buffer-name) ":" (mapconcat (lambda (x) x) (org-get-outline-path t) ":"))) "CATEGORY=\"project\"" + org-agenda-files))) (defun oni-org-link-project (value) (let* ((split-value (split-string value ":"))