This is what I used to have before:
("w" "Weekly" item (file+weektree (concat org-directory "Weekly.org")))
(where org-directory is ~/Notes) and it used to create a tree of this formatin ~/Notes/Weekly.org:
* <YEAR>
** <YEAR>-W<WEEK#>
This started failing once I updated org because the four ways of specifying a date tree were merged into one so I tried
("w" "Weekly" item
(file+olp+datetree (concat org-directory "Weekly.org") :tree-type 'week))
However, now it complains Invalid file location: nil. I checked the value of org-directory and it's the same. Replacing the concat with the full path of the file works. I'm not sure why it doesn't accept the concat call.
The other issue is that it throws an error for how the
:tree-type
is specified. I tried specifying it asweek
,'week
and"week"
but it doesn't accept any of them. What's the right way to specify it?