Added start-day alias; updated i3 startup scripts
This commit is contained in:
@@ -48,9 +48,10 @@ Shortcut to goto todays org-roam dailies document.
|
||||
|
||||
(defun jm/org-roam-capture-today ()
|
||||
(interactive)
|
||||
(jm/org-roam-goto-day 0 t))
|
||||
(jm/org-roam-goto-day 0 t "t")
|
||||
(delete-other-windows))
|
||||
|
||||
(defun jm/org-roam-goto-day (days &optional force-capture)
|
||||
(defun jm/org-roam-goto-day (days &optional force-capture keys)
|
||||
(let* ((base-time
|
||||
(if (and (jm/dailies-file-p) (not (eq days 0)))
|
||||
(date-to-time (file-name-base (buffer-file-name)))
|
||||
@@ -61,7 +62,7 @@ Shortcut to goto todays org-roam dailies document.
|
||||
(jm/org-roam-refresh-agenda-list)
|
||||
(if (and (file-exists-p full-path) (not force-capture))
|
||||
(find-file full-path)
|
||||
(org-roam-dailies--capture rel-time))))
|
||||
(org-roam-dailies--capture rel-time nil keys))))
|
||||
|
||||
(jm/leader-keys
|
||||
"oy" '((lambda () (interactive) (jm/org-roam-goto-day -1)) :which-key "Open/create yesterday's daily notes file")
|
||||
|
||||
Reference in New Issue
Block a user