Generates a bib entry from a matching regex using espanso
- Install Python on your machine. The scripts uses the systems Python interpreter, but no external libraries.
- Install Espanso
- Place the scripts in the corresponding %CONFIG% folder of espanso (Documentation)
Just write :cite:<your search>:
anywhere, it will spawn a GUI and then replace your text with the .bib entry you selected in the GUI. It uses the DBLP API under the hood, which is restricted to computer science papers only. I highly recommend searching with <Author> <Some parts of the title>
to improve the search results, as <Some parts of the title>
often results in irrelevant results.
Note: Espanso limits the regex matches to 30 characters (Source), so you must limit your query.
- If you want to change the regex, edit this line to your preference.
- To increase the amount of results shown in the form, increase the limit in the API call in this line
- I added code to change the DBLP bibkeys to my liking. If you want to change it, edit this function