rofi-bibbrowser icon indicating copy to clipboard operation
rofi-bibbrowser copied to clipboard

Error message when running

Open frdrcv opened this issue 7 years ago • 6 comments

Ain't sure if you're still developing/using rofi-bibbrowser, but it seems to be quite an useful script and I would love to use it. When I try to load it, I get the following error: Traceback (most recent call last): File "./rofi-bibbrowser", line 208, in <module> e['_filenames'] = list(generate_filenames(e)) File "./rofi-bibbrowser", line 128, in generate_filenames result = generator(entry) File "./rofi-bibbrowser", line 107, in filenameBibID return entry['ID'] KeyError: 'ID' I also get just before that many warnings about non-standard entries, but I guess rofi-bibbrowser is just not biblatex compatible. I'm using jabref to manage my bibtex library; perhaps is there code produced by jabef that confuse the script?

frdrcv avatar May 16 '17 18:05 frdrcv

Thanks for using it and for the feedback!

It seems I wrongly assumed that every bibfile entry has an ID (that is the identifier used by the \cite{...} macro). While this assumption is reasonable for bib(la)tex, rofi-bibbrowser does not actually need it.

I have just fixed this by 60b7ac139e1d5edf1e498114ec67d8d566723f68, so please try again

t-wissmann avatar May 16 '17 18:05 t-wissmann

Thanks for the quick answer, this is working now and... wow! This script is awesome! (I think I will need to take a look at my bib file if there are missing keys...)

frdrcv avatar May 16 '17 19:05 frdrcv

Great and Thanks!

Are you happy how the pdf files are renamed?

t-wissmann avatar May 16 '17 19:05 t-wissmann

Yes, absolutely. Habitually, I just use the last name of the first author with the year of publication to name my pdfs, which can lead to confusion. The information shown by your script in rofi is way more complete.

frdrcv avatar May 17 '17 14:05 frdrcv

Actually, I have a question/recommandation. Could it be possible to use the editor's name instead of the author's when the author's field is empty? For now, I get questions marks for these entries and I can't list all the entries of a researcher if they are the editor. Also, there are some biblatex entries that don't seem to work; I have some @Suppbook, @Suppcollection, @online, etc. in my bibliography and they appear as two questions marks. rofibib

frdrcv avatar May 17 '17 16:05 frdrcv

Sorry for not replying to this, I totally forgot this. Now the item formatting falls back to the editor name if there is no author. In the meantime, rofi-bibbrowser uses a better bibtex parser called biblib -- maybe this also solves the other issues. Also, I have slightly changes the config file format (see rofi-bibbrowser --default-config).

t-wissmann avatar Oct 19 '20 07:10 t-wissmann