progfolio / doct

DOCT: Declarative Org Capture Templates for Emacs
GNU General Public License v3.0
380 stars 8 forks source link

Support `(file "path/to/template.org")` template paths #6

Closed swflint closed 4 years ago

swflint commented 4 years ago

Org natively allows the use of files for storing templates. Support for this would make using doct easier.

progfolio commented 4 years ago

This is what the :template-file keyword allows. https://github.com/progfolio/doct#template

I should probably add an explicit example to the docs to make that clearer.

(doct '(("Template file" :keys "t" :file "" :template-file "path/to/template.txt")))

Are you suggesting that the :template keyword accept the vanilla syntax list like so?:

(doct '(("Template file" :keys "t" :file "" :template (file "path/to/template.txt"))))
progfolio commented 4 years ago

@swflint I've added an example for the :template-file keyword to the documentation. Let me know if this addresses your suggestion or if I misinterpreted it.

Thank you

swflint commented 4 years ago

That's it. Thanks.