-
-
Notifications
You must be signed in to change notification settings - Fork 487
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(feat): enable nested captures #966
Conversation
1b1c942
to
87543bf
Compare
Supercedes #527 |
017ef69
to
ce477f3
Compare
another issue: point isn't advanced after link insertion |
I'll have a look in the morning to see if I can come up with a solution for the snags. |
3176271
to
49a478c
Compare
Re: 770a4a1. |
49a478c was functional, but I didn't like the implementation. Tomorrow, I'd like to our custom |
1e55cbf
to
c138715
Compare
29c65d2
to
a61c42e
Compare
a61c42e
to
5c9bb92
Compare
This PR enables the long-awaited nested-captures.
This PR introduces a number of changes:
Adds a hook to
org-capture-prepare-finalize-hook
, which installsorg-roam-capture--finalize
intoorg-capture-after-finalize-hook
if the capture is an Org-roam capture. This function contains key functionality for Org-roam to Do The Right Thing after specific interactive functions, such as finding the file, or inserting a link.A patch for
org-capture-finalize
. Specifically, we makeorg-capture-plist
valid duringorg-capture-finalize
.Many hacks that were originally in place are now replaced with nicer alternatives.