Open mpedramfar opened 9 months ago
Before I read this more fully ...
This is a common use case for me, when I want to open a library file if it exists, and if not, open the link in browser.
... does not citar-open
cover this use case?
It does for the most part. It's just more convenient if I don't have to select the file option every time I want to open a file. What I want is something like a fallback option if the first command fails.
Even if the function is not implemented, I think it would be good to have a meaningful return value for citar-open*
functions.
Even if the function is not implemented, I think it would be good to have a meaningful return value for citar-open* functions.
This is another thing where a PR would be helpful ;-)
This isn't really high priority. When I have time, if it's not implemented, I'll make a PR :)
Thanks for the great package! I love how customizable it is.
Is your feature request related to a problem? Please describe. This is a common use case for me, when I want to open a library file if it exists, and if not, open the link in browser. In
bibtex-completion
, this is implemented inbibtex-completion-open-any
.Describe the solution you'd like A proper way to achieve this would be if
citar-open-*
functions in general, andcitar-open-files
function in particular, return non-nil upon success, then the function would be very easy to write:Describe alternatives you've considered Currently, this can be implemented by hacking the messaging mechanism: