Compare commits

..

15 Commits

Author SHA1 Message Date
881d595e7c
Remember to incorporate org-refile-target-verify-function 2025-08-17 18:22:14 +02:00
8725404332
Remove obsolete docstring parts 2025-08-17 18:14:40 +02:00
ea24a42152
Don't quote nil 2025-08-17 17:55:42 +02:00
ab09a694ae
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 17:52:01 +02:00
dbf0963511
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 17:51:33 +02:00
3f767faf08
Fix type signature for org-refile-get-location substitute function 2025-08-17 17:51:01 +02:00
df98f37f69
Use consult for querying Org refile locations 2025-08-17 17:25:59 +02:00
cff1c86d0b
Allow custom prompt in own Org location query function 2025-08-17 15:47:50 +02:00
e6b2f9eefb
Make custom Org location query function available in main init file 2025-08-17 15:42:47 +02:00
9f55facdb6
Do not create new nodes when refiling
I haven't used this … ever?
2025-08-17 15:42:00 +02:00
195a6afb5f
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 15:41:07 +02:00
0ac05e43ef
Fix prompt when choosing Org headings 2025-08-17 13:47:42 +02:00
a1562a1100
Include prefix when choosing Org heading
Otherwise, the candidates seem to be truncated at the front?
2025-08-17 13:47:05 +02:00
fb8b2837d5
Use default buffer for Org location queries 2025-08-17 13:08:18 +02:00
928ef10ac5
Replace custom usage of `org-refile-targets' with consult functions
This is experimental and needs some further testing.
2025-08-17 13:05:04 +02:00

View File

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