qutebrowser: Switch out shaarli integrations for linkding
Use linkding for the 'l' search engine and add a linkding adding userscript which we use with the ";s" keymap. Add user command 'add-linkding'.
This commit is contained in:
parent
55c4a600c1
commit
930cbbc47c
4 changed files with 32 additions and 4 deletions
27
qutebrowser/data/userscripts/linkding_add.sh
Executable file
27
qutebrowser/data/userscripts/linkding_add.sh
Executable file
|
|
@ -0,0 +1,27 @@
|
|||
#! /usr/bin/env bash
|
||||
#
|
||||
# Send current page/link to a shaarli instance.
|
||||
#
|
||||
# Can be used for sending the current page via:
|
||||
# :spawn --userscript shaarli_add.sh
|
||||
# for sending an arbitrary page passed as argument:
|
||||
# :spawn --userscript shaarli_add.sh https://myinterestingpage.com
|
||||
# or for sending a hinted link:
|
||||
# :hint links userscript shaarli_add.sh
|
||||
#
|
||||
# Configure your shaarli instance with this:
|
||||
INSTANCE="https://links.martyoeh.me"
|
||||
|
||||
# send page to shaarli instance and open the 'post' page to edit it
|
||||
if [ "$#" -gt 0 ]; then
|
||||
BM="$INSTANCE/bookmarks/new?url=$*&auto_close"
|
||||
else
|
||||
BM="$INSTANCE/bookmarks/new?url=$QUTE_URL&auto_close"
|
||||
fi
|
||||
|
||||
if [ -n "$QUTE_FIFO" ]; then
|
||||
echo "open -t -r $BM" >>"$QUTE_FIFO"
|
||||
else
|
||||
xdg-open "$BM"
|
||||
fi
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue