From 3a4ff765083d21e219bc5156a1c85ae2ec386f72 Mon Sep 17 00:00:00 2001 From: Jethro Kuan Date: Sat, 21 Nov 2020 01:27:03 +0800 Subject: [PATCH] (fix): dailies: fix capture changing window configuration (#1314) `*-captures` commands now maintain window configuration, while the `*-find` commands change to the file. --- org-roam-dailies.el | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/org-roam-dailies.el b/org-roam-dailies.el index ecac021..ec0953a 100644 --- a/org-roam-dailies.el +++ b/org-roam-dailies.el @@ -152,7 +152,6 @@ When GOTO is non-nil, go the note without creating an entry." (if goto (list (car it)) it))) (org-roam-capture--info (list (cons 'time time))) (org-roam-capture--context 'dailies)) - (setq org-roam-capture-additional-template-props (list :finalize 'find-file)) (org-roam-capture--capture (when goto '(4))))) ;;;; Commands @@ -164,8 +163,7 @@ When GOTO is non-nil, go the note without creating an entry." (interactive "P") (org-roam-dailies--capture (current-time) goto) (when goto - (run-hooks 'org-roam-dailies-find-file-hook) - (message "Showing daily-note for today"))) + (run-hooks 'org-roam-dailies-find-file-hook))) (defun org-roam-dailies-find-today () "Find the daily-note for today, creating it if necessary." @@ -267,8 +265,7 @@ creating an entry." (time (org-read-date nil t time-str))) (org-roam-dailies--capture time goto) (when goto - (run-hooks 'org-roam-dailies-find-file-hook) - (message "Showing note for %s" time-str)))) + (run-hooks 'org-roam-dailies-find-file-hook)))) (defun org-roam-dailies-find-date (&optional prefer-future) "Find the daily-note for a date using the calendar, creating it if necessary.