mirror of
https://github.com/org-roam/org-roam
synced 2025-09-14 15:46:48 -05:00
(feature): Add numeric prefix argument to org-roam-tomorrow
(#392)
Also add prefix argument to `org-roam-yesterday`. This makes it possible to jump back or forward several days.
This commit is contained in:
18
org-roam.el
18
org-roam.el
@@ -499,15 +499,17 @@ This uses the templates defined at `org-roam-capture-templates'."
|
||||
(interactive)
|
||||
(org-roam--file-for-time (current-time)))
|
||||
|
||||
(defun org-roam-tomorrow ()
|
||||
"Create and find the file for tomorrow."
|
||||
(interactive)
|
||||
(org-roam--file-for-time (time-add 86400 (current-time))))
|
||||
(defun org-roam-tomorrow (n)
|
||||
"Create and find the file for tomorrow.
|
||||
With numeric argument N, use N days in the future."
|
||||
(interactive "p")
|
||||
(org-roam--file-for-time (time-add (* n 86400) (current-time))))
|
||||
|
||||
(defun org-roam-yesterday ()
|
||||
"Create and find the file for yesterday."
|
||||
(interactive)
|
||||
(org-roam--file-for-time (time-add -86400 (current-time))))
|
||||
(defun org-roam-yesterday (n)
|
||||
"Create and find the file for yesterday.
|
||||
With numeric argument N, use N days in the past."
|
||||
(interactive "p")
|
||||
(org-roam-tomorrow (- n)))
|
||||
|
||||
(defun org-roam-date ()
|
||||
"Create the file for any date using the calendar."
|
||||
|
Reference in New Issue
Block a user