Gonna be a really short post! hope you enjoy.
I added the feature to my dot files in this commit.
The 'Usual' way to do citations
Adding it to Qutebrowser
Well, that turned out to be really simple, probably not even worth a blog post :)
location. For me, (in GNU/Linux), it was
Now name the file anything you like, I named mine
Testing the JS file
Now, type in normal mode,
:jseval --file cite.js.
You should see something like the following:
Which means it worked!
Adding a keyboard binding
:jseval --file cite.js every time is very inconvenient,
thankfully qutebrowser allows one to set key binds very easily.
All I needed was to add
config.bind("yc", 'jseval --file cite.js')
to my Qutebrowser's
Now all I need is to press
yc, and tada! (btw
yc is abbreviation
for Yank Citation)