Do not query for ticket when capturing GOALs

I usually do not need those.
This commit is contained in:
Daniel Borchmann 2026-04-03 20:56:57 +02:00
parent 09b4b4dbb9
commit f5679930b8
No known key found for this signature in database
GPG Key ID: 50EA937BF472ADD1

134
init.el
View File

@ -1359,73 +1359,73 @@ accordingly."
(use-package org-capture (use-package org-capture
:commands (org-capture) :commands (org-capture)
:init (setq org-capture-use-agenda-date nil :init (setopt org-capture-use-agenda-date nil
org-bookmark-names-plist nil org-bookmark-names-plist nil
org-capture-templates org-capture-templates
`(("t" "Simple Task" `(("t" "Simple 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"
":PROPERTIES:\n:CREATED: %U\n:END:\n" ":PROPERTIES:\n:CREATED: %U\n:END:\n"
"\nVia %K." "\nVia %K."
"%?") "%?")
:empty-lines-before 1 :empty-lines-before 1
:empty-lines-after 1) :empty-lines-after 1)
("g" "Record new goal" ("g" "Record new goal"
entry entry
(file db/org-default-refile-file) (file db/org-default-refile-file)
,(concat "* %^{Description} (%^{Ticket Number}) :GOAL:\n" ,(concat "* %^{Description} :GOAL:\n"
":PROPERTIES:\n:CREATED: %U\n:END:" ":PROPERTIES:\n:CREATED: %U\n:END:"
"%?")) "%?"))
("h" "Headline (generic Org item)" ("h" "Headline (generic Org item)"
entry entry
(file db/org-default-refile-file) (file db/org-default-refile-file)
,(concat "* [#B] %^{What}\n" ,(concat "* [#B] %^{What}\n"
":PROPERTIES:\n:CREATED: %U\n:END:\n" ":PROPERTIES:\n:CREATED: %U\n:END:\n"
"%a" "%a"
"%?") "%?")
:empty-lines-before 1 :empty-lines-before 1
:empty-lines-after 1) :empty-lines-after 1)
("n" "Note" ("n" "Note"
entry entry
(file db/org-default-refile-file) (file db/org-default-refile-file)
"* Note: %^{About} :NOTE:\n:PROPERTIES:\n:CREATED: %U\n:END:%?" "* Note: %^{About} :NOTE:\n:PROPERTIES:\n:CREATED: %U\n:END:%?"
:empty-lines-before 1 :empty-lines-before 1
:empty-lines-after 1) :empty-lines-after 1)
("j" "Journal entry" ("j" "Journal entry"
plain plain
(file+olp+datetree db/org-default-pensieve-file (file+olp+datetree db/org-default-pensieve-file
"Journal") "Journal")
"\n\n%U\n\n%i%?\n" "\n\n%U\n\n%i%?\n"
:empty-lines-before 1 :empty-lines-before 1
:empty-lines-after 1) :empty-lines-after 1)
("d" "Date" ("d" "Date"
entry entry
(file db/org-default-refile-file) (file db/org-default-refile-file)
,(concat "* GOTO [#B] %^{What} :DATE:" ,(concat "* GOTO [#B] %^{What} :DATE:"
"\n:PROPERTIES:\n:CREATED: %U\n:END:" "\n:PROPERTIES:\n:CREATED: %U\n:END:"
"\n%^{When}t" "\n%^{When}t"
"\n\nVia %K." "\n\nVia %K."
"\n\n%?") "\n\n%?")
:empty-lines-before 1 :empty-lines-before 1
:empty-lines-after 1) :empty-lines-after 1)
("i" "Interruptions" ("i" "Interruptions"
entry entry
(file db/org-default-refile-file) (file db/org-default-refile-file)
,(concat "* DONE [#B] %^{What}\nCLOSED: %U\n" ,(concat "* DONE [#B] %^{What}\nCLOSED: %U\n"
":PROPERTIES:\n:CREATED: %U\n:END:\n" ":PROPERTIES:\n:CREATED: %U\n:END:\n"
"\nInterrupted %K." "\nInterrupted %K."
"%?") "%?")
:clock-in t :clock-in t
:clock-resume t :clock-resume t
:empty-lines-before 1 :empty-lines-before 1
:empty-lines-after 1) :empty-lines-after 1)
("q" "Quick note" ("q" "Quick note"
plain plain
(function db/goto-quick-notes) #'db/goto-quick-notes
"- [ ] %?\n\n On %U via %K." "- [ ] %?\n\n On %U via %K."
:empty-lines-before 1 :empty-lines-before 1
:empty-lines-after 1)))) :empty-lines-after 1))))
;; Babel ;; Babel