Giter Site home page Giter Site logo

Comments (9)

chrisgrieser avatar chrisgrieser commented on July 23, 2024 1

okay, added the ability to open attachment files directly via ctrl+alt+cmd+return (sorry, there aren't enough modifiers left). Attachment files are files that have the key "file" or "attachment" in the BibTeX entry.

The Alfred gallery will auto-update within ~2-3 days, or you can simply download the new version directly:
https://github.com/chrisgrieser/alfred-bibtex-citation-picker/releases/download/11.14.0/alfred-bibtex-citation-picker.alfredworkflow

from alfred-bibtex-citation-picker.

chrisgrieser avatar chrisgrieser commented on July 23, 2024

Makes sense. However, I personally do not use Zotero, so I am not really familiar with the internals of how it works.

Currently this workflow opens the entry by calling the URI scheme zotero://select/items/bbt:{CITEKEY}. Do you (or anyone else) know of a URI scheme that does open the file like you described? Something like that would be required to be able to implement such a feature.

from alfred-bibtex-citation-picker.

kzssc avatar kzssc commented on July 23, 2024

Makes sense. However, I personally do not use Zotero, so I am not really familiar with the internals of how it works.

Currently this workflow opens the entry by calling the URI scheme zotero://select/items/bbt:{CITEKEY}. Do you (or anyone else) know of a URI scheme that does open the file like you described? Something like that would be required to be able to implement such a feature.

Thanks for the immediate reply, Chris.

Personally i don't know of anything/anyone that has a better way. (I vaguely remember this and the fork can do this but it generates a new temp file etc... i think it's too little to gain for a massive effort and trouble, so no.)

Nonetheless, as the .bib contains attachment directory, so possibly, a trigger might point at that?

from alfred-bibtex-citation-picker.

chrisgrieser avatar chrisgrieser commented on July 23, 2024

could you share one or two example entries that have such a link to an attachment?

from alfred-bibtex-citation-picker.

kzssc avatar kzssc commented on July 23, 2024

sure, here! https://transfer.archivete.am/SaIWC/2%20Lottery.bib

from alfred-bibtex-citation-picker.

daaaaaaaaaniel avatar daaaaaaaaaniel commented on July 23, 2024

It's not working for me. I set my PDF folder to the location where Zotero stores PDF ~/Zotero/storage/ but alas. I get the disappointed sound when I try to open the file in Zotero. The zotero://select/items/ version succeeds by holding shift, but when I add the extra modifiers to open the PDF, nothing.

Additionally, Zotero allows for multiple PDFs to be attached to the same bibliographic entry. For instance, sometimes I'll have separate PDFs for each chapter under the same book entry. So it would be great if there was a way of offering something like a "menu" where I could choose which attachment I wanted to open from the particular bibliographic entry that I've already called up. Like, if instead of just choosing the first one on the list after the user holds the right modifiers and hits return, it could display a menu with a list of possible attachments to open in cases where there are more than one available.

from alfred-bibtex-citation-picker.

chrisgrieser avatar chrisgrieser commented on July 23, 2024

@daaaaaaaaaniel The current implementation is based on how the entries from kzssc look like. Likely, your entries are formatted differently.

Could you share an example of how your entries look like?

from alfred-bibtex-citation-picker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.