texworld / betterbib

:green_book: Command-line tools for bibliographies.
816 stars 42 forks source link

betterbib-doi2bibtex: automatically generate a key? #187

Closed tgy closed 3 years ago

tgy commented 3 years ago

Is there a way to automatically generate a key when adding an entry to a bibtex file with betterbib-doi2bibtex?

By default, it seems to set the key to the value key, which is not great because then I have to go modify the bibtex file to change the key.

The key pattern could be something like {first_author.last_name}_{title_first_word}_{year_published}.

Maybe adding an optional --create-key argument to the betterbib-doi2bibtex program could work.

tgy commented 3 years ago

I've opened https://github.com/nschloe/betterbib/pull/188#pullrequestreview-691797118

tgy commented 3 years ago

Fixed by #188