Compare commits

..

16 Commits

Author SHA1 Message Date
4e59c1467d
Remember to incorporate org-refile-target-verify-function 2025-08-17 19:53:05 +02:00
d6ea954434
Remove obsolete docstring parts 2025-08-17 19:53:04 +02:00
bc22db34da
Don't quote nil 2025-08-17 19:53:04 +02:00
4dd695a333
Use consult function to provide org-goto
`org-goto` does not work as before, as our custom Org refile location query function does not honor
the `org-refile-targets` variable.  So, let's just use `consult-org-heading` directly, since this is
what I want.
2025-08-17 19:53:03 +02:00
8c5cdd00bd
Provide regular expression in custom Org refile location function
Not sure what this is good for, but it might be necessary somewhen?
2025-08-17 19:53:03 +02:00
b10c97e06d
Fix type signature for org-refile-get-location substitute function 2025-08-17 19:53:03 +02:00
1ccc8d927d
Use consult for querying Org refile locations 2025-08-17 19:53:02 +02:00
44fb922b66
Allow custom prompt in own Org location query function 2025-08-17 19:53:02 +02:00
eff28a5321
Make custom Org location query function available in main init file 2025-08-17 19:53:02 +02:00
504b3cab80
Do not create new nodes when refiling
I haven't used this … ever?
2025-08-17 19:53:01 +02:00
7f512bed15
Avoid duplicate entries in Org location queries
This happens when the current buffer is already part of the Org agenda files.  In this case, we do
not add the default buffer to the list of search files.
2025-08-17 19:53:01 +02:00
e60dee0a13
Fix prompt when choosing Org headings 2025-08-17 19:53:01 +02:00
5d7776a6dd
Include prefix when choosing Org heading
Otherwise, the candidates seem to be truncated at the front?
2025-08-17 19:53:00 +02:00
9780f1fe7f
Use default buffer for Org location queries 2025-08-17 19:53:00 +02:00
27582a4195
Replace custom usage of `org-refile-targets' with consult functions
This is experimental and needs some further testing.
2025-08-17 19:53:00 +02:00
a0bcceaf8c
Prevent unintented expansion of % in conversion from item to heading 2025-08-17 19:52:04 +02:00

View File

@ -451,8 +451,10 @@ Via %%(with-temp-buffer (db/org-add-link-to-current-clock) (string-trim (buffer-
%s %s
%%?" %%?"
first-line-of-body ;; Quote % to prevent unintented expansion by
rest-of-body))) ;; `org-capture-fill-template'.
(replace-regexp-in-string "%" "\\\\%" first-line-of-body)
(replace-regexp-in-string "%" "\\\\%" rest-of-body))))
(org-capture-set-target-location) (org-capture-set-target-location)
(org-capture-place-template) (org-capture-place-template)