-
Notifications
You must be signed in to change notification settings - Fork 54
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
look into org-noter
support
#756
Comments
@deen1 - with the caveat I'm not sure when I'll have time to implement this (depending on how complicated it is), it might be good to document here what's actually required. I don't ATM use I will add that it looks like I created this issue around the same time I added capture template support to So the question: What, if anything, do we need to better integrate BTW, the other project I've been working on is a rust project, in which I'm also learning the language. So my coding brain cycles have been wrapped up there for the last six months. Why it's hard to switch back to elisp, and this code :-) |
I wouldn't say I'm well-versed in As well as my reference library (i.e. journal papers and the like), I As far as I can tell, the important thing is that under each org This at least works for the news article pdfs. For the journal articles Finally, and I'm not 100% sure about this, but I think
might be necessary to get this to all work together, but I'm unsure how. (P.S. I can appreciate the difficulty toggling between different projects. I should be doing something other than yak-shaving my Emacs config, but I'm convinced it will improve my productivity :-) ) |
No, this is actually useful.
Right. IIRC (need to check), One additional issue alongside that is to think about workflow with all these moving parts. With the standard
Right, this is another thing to check. It may be that with noter one would need to write the path in the bib entry?
Does all of this work with orb? If so, that indeed would be another thing to check; how they do it. |
I'm not sure. The bibfile that contains the Zotero-originating citations includes the path to the pdf file for each bib-entry (where one exists). Unless you meant the path to the notes One thing that slightly confuses me, and might be a red herring, is that some of these notes files have an additional
Maybe this helps? Not sure.
I think so. Here are some settings that might be useful (sorry to spam):
These help enable this capture template for notes:
with
|
I mean internally in ORB. How does it support org-noter, or how do users configure it to do so? |
I'm not sure. I think the settings I provided are a way in which ORB gets the information it needs (from |
You mean the "file" keyword? I think we can already do this, though there there may be some wrinkles? Like, org-noter I assume requires a single path, but citar can return multiple. |
From briefly looking at org-noter, here's my understanding of the problem: Finding the PDF file from a given notes file should work fine, because as @deen1 said, org-noter puts the PDF filename in a property drawer under each heading. The converse, finding the note file associated with a PDF file, requires the notes file to have the same base name as the PDF file but with a ".org" extension; this is hard-coded into org-noter. With Zotero, PDF files can have arbitrary names, so if you want your notes to be named by citation key (for example) then there's no way to get org-noter to find your notes. In principle, Citar could help here by locating the citation key associated with a given PDF (by reverse-lookup of the I think the first step would be to get org-noter to refactor this logic out (i.e. a function to locate a note filename given a PDF filename) and make it customizable. Then we could override that function with one that does the lookup through Citar. Ideally, org-noter would have a customizable list of functions it calls in order to get the note file associated with a given PDF document. (That said, I don't have a lot of time to work on it these days because I'm trying to get my thesis done soon.) |
@petermao - would you be open to this feature request? PS - I see you're in Santa Monica; I grew up there!
Best of luck with that. |
Thanks @roshanshariff, that helped clarify my empirical understanding of @bdarcus Would it then be possible to implement the "file" keyword before handling any changes to |
Is it not already? |
Sorry, I meant in terms of adding it to the |
Not sure what I can do when, but in the meantime, are you aware of: https://retorque.re/zotero-better-bibtex/ |
The refactoring has sort-of happened (see this commit from June 4, 2023). See the stuff about For the record, default
This is as it came from the original author, so for me and @dmitrym0, this is "found code." I could imagine expanding The recently added functions Dmitry has an
|
Yes -- in fact that's what I've been using before. I'm not sure how that would help add stuff to the The point about all of this was to move away from Zotero to something more contained in Emacs, and since I started using |
I was mentioning them in response to your point about file names, since zotfile allows you rewrite and move them. |
Do you have an issue over there for that that we can link this to? In any case, might be useful for him to know about this. EDIT: never mind; I see the draft PR; I added the link to this issue there. |
It had crossed my mind to do that at some point, but there's a bit of a hysteresis issue as I would also have to change the filename in the |
org-noter has a very opinionated way of deciding where notes go - typically a |
Think I came up with a temporary fix for the
My EDIT: This function more or less matches what I had as my
|
What's the current state of integration? The usecase I'd like to address is:
At the moment this is not possible, and I have to switch to the PDF and then run |
Also, I noticed this file exists, but I've loaded it and it doesn't seem to do what I describe above. Plus it's not in the package on MELPA, so I guess it's old and not really meant to be used. |
I really have no clue, other than to note that the org-noter PR that may have made at least some of this possible has been merged.
And it's a bit odd it requires both citar and org-ref. Perhaps you can dig into the org-noter changes and report back? |
Would be nice too if it could elegantly work with |
This PR has been merged, and while it's specifically targeting org-roam, the note file opening process is generic enough to support any workflow, I hope. There's additional documentation here: https://github.com/org-noter/org-noter/blob/update-documentation-customization-recipes/docs/customization-recipes.org#customizing-note-opening-process
org-noter code base is 5+ years old at this point with multiple contributors and maintainers over the years so I'm not surprised that some things have gone stale. |
OK, thanks @dmitrym0! For anyone that wants to look into this more (I don't really have time ATM): It seems Here's an example of a citar "notes source" configuration; in this case for org-roam integration: https://github.com/emacs-citar/citar-org-roam/blob/main/citar-org-roam.el#L75-L81 The things we need for full integration are functions to:
I'm just a bit unsure how, and where, it would best fit together. EDIT: to expand on the last bit. Citar now has a notes API that should ideally work for this use case. So my question here is where the relevant In the org-roam case, |
The fix I mentioned above allows me to use
The only thing I can't do is create a new note when currently viewing the PDF file for the citation. However, if the note file already exists, running |
Perhaps you could add that to the wiki, @deen1? |
@bdarcus OK, I've written something up (hopefully haven't messed up the other stuff on the page). |
@deen1 thank you so much for the detailed instructions. One question: why is your implementation tied to org-roam? In principle, would a direct linking of org-noter notes with citar keys (without org-roam) be possible? |
@asymmetric Hmm... well I started using But yes, my apologies if my "fix" does not help use-cases that do not involve Although maybe it's possible to look at |
Hey folks, I'm org-noter maintainer -- following up on this. I'm at a point now, where I'm overwhelmed with the number of documents I'm juggling and Citar seems like the answer. I'm reading the wiki entry from above, and I have some questions:
I'm not yet familiar with the bibliography workflow. For non org-noter use cases, where does the metadata listed above come from? Is it entered manually? What is needed from org-noter to support a correct end to end Citar workflow? |
No; it comes from the metadata that citar accesses from the bib file(s).
Caveat: I am not an org-noter user, so others on this thread will have better understanding of that end. My earlier post is still correct from a high-level POV. I added a bit of clarification at the end. Along with my question there about where code lives, I'm also ultimately unsure of the ideal user workflow here, etc. It seems to me ideally the choice of using |
@dmitrym0 Sorry for the slow response, but just to clarify in case you are still interested in this: That paragraph in the wiki entry (which I wrote) describes a use-case where one is viewing a .pdf which is associated with an entry in a bibfile that is in the
|
Hey @deen1, I am still interested in this. In fact, I was inspired to understand the what and/how of zotero/citar thanks to this issue. I recently pushed a small PR (link). It makes org-noter aware of whether there are existing notes files for a specific publication:
then:
No step 3. Org-noter identifies an existing node and opens it automatically: flowchart TD
A[User invokes M-x org-noter on a PDF file] --> B{Has user previously taken notes for the specific PDF file?}
B -- Yes --> C[Open the notes file automatically]
B -- No --> D[Ask the user to select a notes file interactively]
D --> E[Open the selected notes file]
Essentially this ensure that your org-noter session always goes to the same literature notes file. Re-reading your wiki entry it seems like what is missing is populating the literature note bibliography metadata? |
@dmitrym0 Looks interesting, I'll have to check that out soon!
Yes (unless I am forgetting something else). Basically, the metadata is used to fill in the |
The question
What, if anything, do we need to better integrate
citar
andorg-noter
, regardless of whether one is also usingcitar-org-roam
?Details
With announcement of new maintainers for
org-noter
, it seems its future is more secure.We should look into ORB-like support here, either in the code itself (say a template variable), or on the wiki.
I originally added this to the
citar-org-roam
tracker, but realized the below would work, either for inclusion incitar-org
, or on the wiki.Also, see if
citar
andcitar-org-roam
template approaches are, or can be, aligned, so one can mix and match across contexts?See also #750.
The text was updated successfully, but these errors were encountered: