(feature): add org-roam-yesterday (#215)

Closes #214
This commit is contained in:
Jethro Kuan 2020-03-02 02:53:53 +08:00 committed by GitHub
parent 4c3d5b90a7
commit b74cc14377
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -773,6 +773,12 @@ INFO is an alist containing additional information."
(let ((path (org-roam--file-for-time (time-add 86400 (current-time)))))
(org-roam--find-file path)))
(defun org-roam-yesterday ()
"Create and find the file for yesterday."
(interactive)
(let ((path (org-roam--file-for-time (time-add -86400 (current-time)))))
(org-roam--find-file path)))
(defun org-roam-date ()
"Create the file for any date using the calendar."
(interactive)