org-roam / org-roam

Rudimentary Roam replica with Org-mode
https://www.orgroam.com
GNU General Public License v3.0
5.51k stars 481 forks source link

org-roam-diailies-goto-today with GOTO argument not behaving as expected #2270

Open joyguar opened 2 years ago

joyguar commented 2 years ago

Description

I have defined a wrapper function for org-roam-dailies-goto-today to visit today's dailies file but not create an entry by passing a non-nil value for the GOTO argument per its docstring. However, it still generates a new entry.

;;;###autoload
(defun my/org-journal-goto-today ()
  "Goto journal for today."
  (interactive)
  (org-roam-dailies-capture-today t "l"))

The relevant template in my dailies templates is

org-roam-dailies-capture-templates
   '(("l" "Log" plain ""
      :target (file+head+olp "%<%Y-%m>.org" ""
                             ("%<%Y-%m-%d %A>" "logs" "%<%H:%M>\n"))
ZucchiniY commented 2 years ago

look at #2134 and #2141