-
Notifications
You must be signed in to change notification settings - Fork 17
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
Is it any opportunity to open attached pdf file from bibtex... #20
Comments
If telescope supports specifying result-sensitive actions this should be possible. You can implement it yourself and then either open a PR or use it locally, of course. |
I would start here: telescope docs under |
I have bodged together an implementation for this over at https://github.com/erooke/telescope-bibtex.nvim/tree/open-file. Simply specify the pdf reader in the config: require('telescope').setup {
extensions = {
bibtex = {
reader = { 'evince' },
}
}
} then call Currently has a quirk where if you close the terminal hosting vim before closing vim the reader closes. I'm not sure how to stop that happening. |
This looks good. How exactly is the format of the file field in the entry? |
That is a great question I wish I had an answer to. I was unable to find a good description of what was going on. The following is my best guess based on searching through all the bib files in the jabref repository:
The current implementation deals with very little:
For my use case all of that is true but it's the main reason I hadn't submitted it as a pull request yet as it feels too hacky at the moment. |
For what its worth helm-bibtex has implemented this feature. They support:
as file specifications. |
I've proposed a reply here : uses mappings to add this feature. |
I have bibtex file that is generated with link to pdf document (jabref and papers-cli generate it). Is it any opportunity to bind key for opening it while I search it in telescope... ?
The text was updated successfully, but these errors were encountered: