Add shaarli quick add bookmarklet to qutebrowser

Invoked by leader + bs (for bookmark shaarli); opens up the post page of
shaarli (hardcoded to my personal instance for now).
This commit is contained in:
Marty Oehme 2019-12-20 12:21:57 +01:00
parent d7f51e66cd
commit abde786e38
2 changed files with 9 additions and 2 deletions

View file

@ -116,8 +116,11 @@ c.aliases["e"] = "session-load"
# bookmarklet aliases: # bookmarklet aliases:
# currently the idea is to prefix bookmarklets with b (as in open "bookmarklet") # currently the idea is to prefix bookmarklets with b (as in open "bookmarklet")
# wallabag add current page, either with walla command, or <leader>bw # wallabag add current page, either with walla command, or <leader>bw
c.aliases["wallabag-add"] = "spawn --userscript wallabag_add.sh" c.aliases["add-wallabag"] = "spawn --userscript wallabag_add.sh"
config.bind(leader + 'bw', 'wallabag-add', mode='normal') config.bind(leader + 'bw', 'add-wallabag', mode='normal')
# add to (my) shaarli instance
c.aliases["add-shaarli"] = "spawn --userscript shaarli_add.sh"
config.bind(leader + 'bs', 'add-shaarli', mode='normal')
# re-opens the current page on the web archive overview page # re-opens the current page on the web archive overview page
c.aliases["archive-open"] = "open https://web.archive.org/web/{url}" c.aliases["archive-open"] = "open https://web.archive.org/web/{url}"
config.bind(leader + 'ba', 'archive-open', mode='normal') config.bind(leader + 'ba', 'archive-open', mode='normal')

View file

@ -0,0 +1,4 @@
#! /usr/bin/bash
# send current page to my personal shaarli instance and open the 'post' page to edit it
echo "open https://links.martyoeh.me/?post=$QUTE_URL" >>"$QUTE_FIFO"