Closed brabalan closed 4 years ago
(unless (eq org-journal-file-type 'daily) (org-narrow-to-subtree))
Right!
(setq as/org-journal-date-location-scheduled-time scheduled-time)
Why didn't you reuse the variable scheduled-time
instead of creating a new global variable as/org-journal-date-location-scheduled-time
which is available even after let
. Is there a reason?
Please create a PR.
Why didn't you reuse the variable
scheduled-time
instead of creating a new global variableas/org-journal-date-location-scheduled-time
which is available even afterlet
. Is there a reason?
I need the scheduled time to be available in the org-capture
template. I know it's ugly to use side effects like this, but I don't have another solution.
When implementing https://github.com/bastibe/org-journal#journal-capture-template in my configuration, I was getting errors of the form
before the first headline
. I narrowed it down to the call toorg-narrow-subtree
. Indeed, in some cases (daily journal withorg-journal-date-prefix
set to something other that*
, it's#+TITLE:
in my case), there is no subtree.As this line is only useful for entries that are not in daily format, I suggest to change this line to
In addition, I have adapted the code to work for a future entry. Here it is:
and