mirror of
https://github.com/org-roam/org-roam
synced 2025-08-01 12:17:21 -05:00
[V2] make org-roam-dailies-xxx work
This commit is contained in:
committed by
Jethro Kuan
parent
50436a9b1c
commit
7a493d8549
@ -514,7 +514,7 @@ This function is used solely in Org-roam's capture templates: see
|
||||
(append converted options `(:org-roam ,org-roam-plist))))
|
||||
(_ (user-error "Invalid capture template format: %s" template))))
|
||||
|
||||
(cl-defun org-roam-capture--capture (&key goto keys info context)
|
||||
(cl-defun org-roam-capture--capture (&optional goto &key keys info context)
|
||||
(let* ((org-capture-templates
|
||||
(mapcar #'org-roam-capture--convert-template org-roam-capture-templates))
|
||||
(org-roam-capture--info info)
|
||||
@ -522,6 +522,7 @@ This function is used solely in Org-roam's capture templates: see
|
||||
(one-template-p (= (length org-capture-templates) 1)))
|
||||
(when one-template-p
|
||||
(setq keys (caar org-capture-templates)))
|
||||
(setq org-roam-capture-additional-template-props (list :finalize 'find-file))
|
||||
(org-capture goto keys)))
|
||||
|
||||
;;;###autoload
|
||||
|
@ -154,7 +154,9 @@ 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))
|
||||
(org-roam-capture--capture (when goto '(4)))))
|
||||
(org-roam-capture--capture (when goto '(4))
|
||||
:info (list (cons 'time time))
|
||||
:context 'dailies)))
|
||||
|
||||
;;;; Commands
|
||||
;;; Today
|
||||
|
Reference in New Issue
Block a user