Merge pull request #28 from steven-lang/patch-1

Add org-roam-tomorrow and org-roam-date
This commit is contained in:
Jethro Kuan 2020-02-07 19:13:58 +08:00 committed by GitHub
commit 30b6477639
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -228,6 +228,16 @@ If called interactively, then PARENTS is non-nil."
(interactive)
(org-roam--new-file-named (format-time-string "%Y-%m-%d" (current-time))))
(defun org-roam-tomorrow ()
"Create the file for tomorrow."
(interactive)
(org-roam--new-file-named (format-time-string "%Y-%m-%d" (time-add 86400 (current-time)))))
(defun org-roam-date ()
"Create the file for any date using the calendar."
(interactive)
(let ((time (org-read-date nil 'to-time nil "Date: ")))
(org-roam--new-file-named (format-time-string "%Y-%m-%d" time))))
;;; Org-roam buffer updates
(defun org-global-props (&optional property buffer)