If you use Alfred (see here) and Bibdesk (see here), you might find this useful. The script below uses Alfred's "Workflow" feature. It provides a set of commands to search bibliographical entries directly from Alfred, and execute a variety of actions on them related to citing, opening PDFs, narrowing searches, etc. DOWNLOAD IT HERE. The initial basic options are these:
This is what the first option looks like, after I typed in "Cohen": (Read more below the fold)... Now several actions are possible, depending on which modifier keys are pressed:
The citation option is the most complicated. After selecting it, you are prompted to enter a page range for the citation (or leave blank). After that, you are prompted for the citation format. I use LaTeX and MMD, but it is easy to add/remove other formats. The page range option looks like this: Then the citation options looks like this: Then, depending on your selection, you'll get a notification of the item copied into the clipboard. If you are in an active text field --- i.e., if you do all this when working in Word, for example --- the entry is pasted automatically. It looks like this: The Workflow is based on BibQuery by Hackademic. But it is changed (from using XML to JSON), and in the way it interacts with Alfred. Because it is changed, there is also a lot of dead code in the python scripts. I left it there with the hopes of one day making more search option (keyword, group, etc.) available. The entire flow looks like this:
8 Comments
Stefan
7/13/2016 06:11:20 am
Thanks for the workflow!
Reply
Riccardo
10/16/2016 10:02:16 am
Thank you very much for creating this! It's a great service to the community.
Reply
Zvi Biener
2/22/2017 02:53:51 pm
Hi Riccardo and Stefan. Thanks for checking this out! For some reason, I got no notification that you posted here, so I just discovered it. Quick reply: Stefan, I'll look into it. Richardo: do you mean the full bibtex code of the entry, as it appears in your .bib file, or just the bibtex command /cite{etc.}. If the latter, the workflow already does this when you press the command button. But you probably mean the former. I'll look into that.
Reply
Riccardo
2/22/2017 03:16:04 pm
Hi Zvi,
Reply
Zvi Biener
2/22/2017 04:29:46 pm
That's great to hear. I'll see what I can do. Just FYI, the script does not read the underlying bib file, it read BibDesk cache files. But I'll see if there is an easy solution.
Hi Zvi, is this still working?
Reply
Zvi Biener
8/15/2018 10:51:35 am
Hi Patrick,
Reply
8/16/2018 05:58:19 am
This is great, thank you so much. I had no idea what was causing this issue with some of my BibDesk related Alfred plugins. I read through the update logs of BibDesk and didn't found a thing.
Reply
Leave a Reply. |
Categories
All
Archives
October 2018
|