Re: Org-cite follow function for ebib

2021-08-09 Thread Thomas S. Dye
Aloha John, Thanks! All the best, Tom John Kitchin writes: > If every thing is working right, you can get the file that a key is in like > this: > > #+BEGIN_SRC emacs-lisp > (cl-loop for (file . entries) in (org-cite-basic--parse-bibliography) > when (gethash "some-key" entries) >

Re: Org-cite follow function for ebib

2021-08-09 Thread John Kitchin
If every thing is working right, you can get the file that a key is in like this: #+BEGIN_SRC emacs-lisp (cl-loop for (file . entries) in (org-cite-basic--parse-bibliography) when (gethash "some-key" entries) return file) #+END_SRC This returns the first file that matches. John

Re: Org-cite follow function for ebib

2021-08-09 Thread Bruce D'Arcus
I don't have a super specific suggestion ATM, but will just make the following observation: John Kitchin and I have been working on respective processors, and they are modular enough that: 1) one can mix-and-match across projects 2) one can customize within each follow processor; for

Re: Org-cite follow function for ebib

2021-08-09 Thread Joost Kremers
Hi Thomas & others, On Sat, Aug 07 2021, Thomas S. Dye wrote: > Aloha Joost, > > Following some pointers from Eric and Bruce I have this in my > configuration and it seems to work fine, though I haven't had a chance > to use it very much. Thanks for figuring that out. :-) Once I get to

Re: Org-cite follow function for ebib

2021-08-07 Thread Thomas S. Dye
Aloha Joost, Following some pointers from Eric and Bruce I have this in my configuration and it seems to work fine, though I haven't had a chance to use it very much. ;; Citations (defun tsd/choose-file (candidates) (interactive) (org-completing-read "Choose file: " candidates))

Re: Org-cite follow function for ebib

2021-08-07 Thread Joost Kremers
On Fri, Aug 06 2021, Thomas S. Dye wrote: > Yes, I have set the basic follow processor and org-open-at-point takes > me to the .bib file at the entry for the key at point. Unfortunately, I haven't had the time yet to update Ebib for the new functionality. Ebib needs to implement a follow

Re: Org-cite follow function for ebib

2021-08-06 Thread Thomas S. Dye
Yes, I have set the basic follow processor and org-open-at-point takes me to the .bib file at the entry for the key at point. Surprisingly (to me), M-x ebib sometimes displays the entry for the key at point, too. All the best, Tom Bruce D'Arcus writes: > On Fri, Aug 6, 2021 at 12:47 PM Thomas

Re: Org-cite follow function for ebib

2021-08-06 Thread Bruce D'Arcus
On Fri, Aug 6, 2021 at 12:47 PM Thomas S. Dye wrote: > > Aloha Bruce, > > So, I tried calling ebib() with point on a key and it works in some > instances but not in others. Just to make sure I'm being clear, I mean this in your config: (setq org-cite-follow-processor 'basic) ... and then, when

Re: Org-cite follow function for ebib

2021-08-06 Thread Thomas S. Dye
Aloha Bruce, So, I tried calling ebib() with point on a key and it works in some instances but not in others. So far, it works sometimes on plain cite: keys, but never on styles or variants, like cite/a/f: It would be magical if something this simple would do the trick. All the best, Tom

Re: Org-cite follow function for ebib

2021-08-06 Thread Bruce D'Arcus
On Fri, Aug 6, 2021 at 11:50 AM Thomas S. Dye wrote: > > Aloha Eric, > > That function opens a window on the ebib database and displays the > record with the key at point. So does the oc-basic follow function not provide this? I guess I'm unclear if one can configure ebib to open bib files by

Re: Org-cite follow function for ebib

2021-08-06 Thread Thomas S. Dye
Aloha Eric, That function opens a window on the ebib database and displays the record with the key at point. At this point, I'm just checking to see if someone has a similar function working for the new org-cite framework. I do appreciate the pointers to functions that do something similar

Re: Org-cite follow function for ebib

2021-08-06 Thread Eric S Fraga
On Thursday, 5 Aug 2021 at 10:12, Thomas S. Dye wrote: > I want to open the bib entry, something similar to org-ebib-open, > which works on Org mode links. Tom, maybe clarify what org-ebib-open does? For me, org-open-at-point, bound to C-c C-o, on a [cite:@key] entry, will open the

Re: Org-cite follow function for ebib

2021-08-05 Thread Thomas S. Dye
I want to open the bib entry, something similar to org-ebib-open, which works on Org mode links. All the best, Tom Bruce D'Arcus writes: What kind of functionality do you want associated with your citations (when you run `org-open-at-point` on them)? Is some or all of it specific to ebib?

Re: Org-cite follow function for ebib

2021-08-05 Thread Bruce D'Arcus
What kind of functionality do you want associated with your citations (when you run `org-open-at-point` on them)? Is some or all of it specific to ebib? Or is it more generic; opening the bib entry, notes, PDFs, etc? Because the modular nature of org-cite makes it easy to mix-and-match pieces

Org-cite follow function for ebib

2021-08-05 Thread Thomas S. Dye
Aloha all, My googling came up empty. Does anyone have such a function? All the best, Tom -- Thomas S. Dye https://tsdye.online/tsdye