Insert current clock when capturing simple tasks

This is more reasonable than inserting a link to the current location of
point, which can be quite arbitrary (at least in my workflow).  When a
link to the item at point is needed, it should be inserted manually.
This commit is contained in:
Daniel Borchmann 2024-06-13 21:04:45 +02:00
parent 5d28ab04a6
commit 028dc91f28
No known key found for this signature in database
GPG Key ID: 784AA8DF0CCDF625

View File

@ -1125,7 +1125,7 @@ quickly loose their meaning."
(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 %a." "\nVia %(with-temp-buffer (db/org-add-link-to-current-clock) (string-trim (buffer-string)))."
"%?") "%?")
:empty-lines-before 1 :empty-lines-before 1
:empty-lines-after 0) :empty-lines-after 0)