Skip to content

Xeophon/espanso-bib-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

espanso-bib-generator

Generates a bib entry from a matching regex using espanso

Installation

  1. Install Python on your machine. The scripts uses the systems Python interpreter, but no external libraries.
  2. Install Espanso
  3. Place the scripts in the corresponding %CONFIG% folder of espanso (Documentation)

Usage

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.

Config

  • 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

About

Generates a bib entry from a matching regex using espanso

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages