-
Notifications
You must be signed in to change notification settings - Fork 74
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
Use org-capture for bibtex-completion-notes? #260
Comments
I like the idea. |
Oh, I had written a comment earlier but apparently misclicked when I submitted. Sorry about this. I like this, too, especially the use of indirect buffers. Wasn't aware they existed when I wrote the notes code. I had considered using org-capture but at the time I found some reason against that. Now I can't recall what that reason was. What do you think needs to be changed before this feature can be merged? Would you mind making a PR? |
Thanks for the feedback on this suggestion. I can think of the following points:
@tmalsburg What do you think? I can open a PR based on above code, but I may not be able to integrate all the points currently. An open PR may still be a better basis for discussion than a code-snippet in some issue. |
I'd say keep the notes-mode for editing existing entries, and use org-capture for creating new ones. We should also make org-capture-templates customizable. Not everyone will want to organise their notes by date. The current code inserts new entries at the end of the file so maybe we should keep this as the default? Other than that, I would suggest adding bibtex-completion-clean-string when creating new entries. |
Hi both, I don't have time to work on this at this time. The term is starting and I have to prepare lectures. However if someone wants to make a PR, I'd be happy to give feedback. |
I tried implementing this feature in #263. |
Thanks @jagrg ! Regarding the multi-file setup: This could also be handled by
where |
Neat idea!
I'm not sure I understand this bit. Could you explain? |
The third argument in the capture template can be The documentation of
|
org-capture
is widely used and "more powerful" than the currentbibtex-completion-edit-notes
setup. For example, the new notes can be organized in a datetree and the template code supports more things (such as timestamps).I wrote below replacement for
bibtex-completion-edit-notes
. I don't suggest merging it just like this, but it may be a good starting point in case you are interested in migrating to someorg-capture
based setup. Compared to the originalbibtex-completion-edit-notes
it also uses indirect buffers instead of modifying the outline and narrow state of the original notes buffer. Only the single notes file case is supported. If a note already exist, the behavior is similar to the existing function (but using indirect buffer). For new notes,org-capture-templates
is temporarily overwritten based onbibtex-completion-notes-template-one-file
and thenorg-capture
is invoked.The text was updated successfully, but these errors were encountered: