-
Notifications
You must be signed in to change notification settings - Fork 37
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
Make notes infrastructure more flexible, to allow user's external integrations #263
Comments
I haven't looked at this for a while, but I was thinking about it today. One of the big problems with this idea is that breaks quite a lot from the previous setup, and (understandably!) lots of users who rely on that setup might not want that. Here's a rough guide to a possible implementation. I'm mostly just putting it here so that I can refer to it if I ever come back to this project... Have four variables:
Now for backwards compatibility. For each variable, write such a function which checks the old variables like If we wanted to support the possibility of having more than one note per entry (like citar does), we could split
Possible issues:
|
Hello @Hugo-Heagren, +1 to your idea! We, now a some time ago, discussed an integration between denote and But reading the code of this package, I realized that small changes should be made for smoother and more complete integration. Your proposed system, in my view, is just what it needs. You have some prototype code for this proposed implementation, that you can share, so I can test it with an Thanks! |
Unfortunately I don't yet -- I've been working on other things lately and this taken a bit of a back seat. As/when I do build something I will post it here and tag you, though it might be some time I'm afraid... |
I've started using org-roam for note-taking, and citar for dealing with bibliographies while writing. They play very nicely together -- I've got a setup now where navigating to an entry's note from citar opens the relevant note in org-roam (or creates one, using org-roam's capture mechanism, if it doesn't already exist).
I'd like to be able to synchronise this functionality with ebib. That is, I'd like ebib to behave the same way: opening or capturing the relevant note when I use ebib's built-in notes functionality.
I'm happy to write the code and make a PR, but I'd like some input on the overall strategy.
Broadly I think that the user should be able to customise notes behaviour by customising various variables, which are set to functions (that is, a similar approach to
ebib-notes-extract-text-function
, but for other functionality as well). These functions should take standardised arguments, and return standardised types of output. Then "front-end" functions likeebib-popup-note
will be implemented by calling those functions.All the current behaviour can be retained by keeping it in the default function for each of those variables (which most users will probably be happy with).
I think the following functionality could/should be customisable this way:
This roughly mirrors (and is heavily inspired by) citar's approach, where there are functions to:
I understand this would be a big change, potentially with significant backward-incompatibility, so what do you think?
The text was updated successfully, but these errors were encountered: