From 6582785a4004fe68c79219c690aaafdc8ec5a240 Mon Sep 17 00:00:00 2001 From: jao Date: Fri, 28 Nov 2025 13:12:09 +0000 Subject: jao-org-notes: capture templates with notes file fixed --- lib/doc/jao-org-notes.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/doc') diff --git a/lib/doc/jao-org-notes.el b/lib/doc/jao-org-notes.el index 4b45eab..0b2c65b 100644 --- a/lib/doc/jao-org-notes.el +++ b/lib/doc/jao-org-notes.el @@ -188,7 +188,7 @@ appear in any order in the tags list. (init (concat "^..tags: " (mapconcat #'identity tags " ")))) (jao-org-notes-consult-ripgrep init))) -(defun jao-org-notes-create (&optional title) +(defun jao-org-notes-create (&optional title ret-buffer) "Create a new note file, matching tags and titles with completion." (interactive) (when (jao-org-notes--insert-title title) @@ -197,7 +197,7 @@ appear in any order in the tags list. ":\n") (org-insert-time-stamp (current-time) t t "#+date: " "\n")) (save-buffer) - (current-buffer)) + (if ret-buffer (current-buffer) (buffer-file-name))) (defun jao-org-notes-backlinks () "Show a list of note files linking to the current one." -- cgit v1.2.3