Closed DarkBuffalo closed 2 years ago
maybe that would also interest @bastibe
Hi, First of all thank you for the good work done on DOCT.
Glad you're finding it useful. Thank you for the thorough bug report.
It looks like you have two separate issues here. Let's deal with them one at a time.
When I leave the 2 ** in the template it shows me an error
When I wrote the validator, I likely copy pasted a check from just above where entries are checked for leading stars. Instead of string-prefix-p
, the check needs to use string-match-p
because we want to check via a regexp. I've fixed this on the "development" branch as demonstrated by these two tests:
Yodel Report (2022-07-13 12:45:51):
(yodel
:user-dir "doct-master"
:packages*
doct
:post*
(doct
'("test"
:keys "t"
:file ""
:template "**")))
Yodel Report (2022-07-13 12:45:53):
(yodel
:user-dir "doct-development"
:packages*
'(doct
:branch "development")
:post*
(doct
'("test"
:keys "t"
:file ""
:template "**")))
I'll merge that into the master branch in a few minutes and you can try it on either branch.
As for your second issue:
When I leave a single * it does not indent the hourly headline
My hunch is that everything is working as expected.
The example utilizes a :function
which is responsible for placing point.
Then the template is inserted as is.
So with a first-level heading template, I'd expect a first level heading.
Org capture will adjust the level of the heading in the template if you specify certain targets,
such as file+heading
, but not when a general point-placing function is used.
Does that help?
I'm assuming this fixed the issue. If not, feel free to comment and we can reopen this issue.
Hi, First of all thank you for the good work done on DOCT.
Context
I tried to adapt the capture provided by org-journal with DOCT but it does not work.
Errors
Does the problem come from my adaptation or is this a bug ?