Restructure capture templates

The template for simple tasks should be simple, but got more complex in the last
change.  This mistake is reverted with this commit, and the usual "t" can now be
used again for simple tasks.  The "T" shortcut now provides capture templates
for complex tasks, but since complex tasks are both manifold and rarer, the
capture templates are provided with two-letter shortcuts.
This commit is contained in:
Daniel Borchmann 2020-06-30 16:40:05 +02:00
parent 72768b659f
commit 2fd03dcf33
Signed by: exot
GPG Key ID: 1C7071A75BB72D64

View File

@ -1048,15 +1048,15 @@ With given ARG, display files in `db/important-document-path."
:commands (org-capture) :commands (org-capture)
:init (setq org-capture-use-agenda-date nil :init (setq org-capture-use-agenda-date nil
org-capture-templates org-capture-templates
`(("t" "Things to do") `(("t" "Simple Task"
("tt" "Single Task"
entry entry
(file db/org-default-refile-file) (file db/org-default-refile-file)
,(concat "* TODO [#B] %^{What}\n" ,(concat "* TODO [#B] %^{What}\n"
"SCHEDULED: %(org-insert-time-stamp (org-read-date nil t \"+0d\"))\n" "SCHEDULED: %(org-insert-time-stamp (org-read-date nil t \"+0d\"))\n"
":PROPERTIES:\n:CREATED: %U\n:END:\n" ":PROPERTIES:\n:CREATED: %U\n:END:\n"
"%?")) "%?"))
("tc" "Record new complex task with first item" ("T" "Complex Tasks")
("TC" "Record new complex task with first item"
entry entry
(file db/org-default-refile-file) (file db/org-default-refile-file)
,(concat "* %^{Task Description}\n" ,(concat "* %^{Task Description}\n"
@ -1064,7 +1064,7 @@ With given ARG, display files in `db/important-document-path."
"\n** %^{First Thing to Do}\n" "\n** %^{First Thing to Do}\n"
":PROPERTIES:\n:CREATED: %U\n:END:\n" ":PROPERTIES:\n:CREATED: %U\n:END:\n"
"\n%?")) "\n%?"))
("tT" "Record new ticket with first item" ("TT" "Record new ticket with first item"
entry entry
(file db/org-default-refile-file) (file db/org-default-refile-file)
,(concat "* Ticket #%^{Ticket Number}: %^{Ticket Description}\n" ,(concat "* Ticket #%^{Ticket Number}: %^{Ticket Description}\n"