Compare commits
2 Commits
26372f06a0
...
740fb51f02
Author | SHA1 | Date |
---|---|---|
Felix Van der Jeugt | 740fb51f02 | |
Felix Van der Jeugt | 95287881c3 |
|
@ -161,6 +161,10 @@ config.bind("o", "set-cmd-text -s :open -s ", mode="normal")
|
|||
config.bind("O", "set-cmd-text -s :open -s -t ", mode="normal")
|
||||
config.bind("\\", "set-cmd-text -s :open ", mode="normal")
|
||||
config.bind("|", "set-cmd-text -s :open -t ", mode="normal")
|
||||
config.bind(";t", "hint links spawn --detach tempbrowser {hint-url}", mode="normal")
|
||||
config.bind(";n", "hint links spawn --detach newbrowser {hint-url}", mode="normal")
|
||||
config.bind("gt", "spawn --detach tempbrowser {url}", mode="normal")
|
||||
config.bind("gn", "spawn --detach newbrowser {url}", mode="normal")
|
||||
|
||||
# I don't use bookmarks
|
||||
config.unbind('wB')
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ -z "$*" ]; then
|
||||
exec munsubscribe .
|
||||
else
|
||||
for url in $(mshow -qh list-unsubscribe "$@" | grep -o '<http[^>]*>' | sed -e 's/^<//' -e 's/>$//'); do
|
||||
curl -w '%{http_code}' -s -o /dev/null "$url"
|
||||
for url in $(mshow -qh list-unsubscribe "$@" | xurls -m http); do
|
||||
curl -L -w '%{http_code}' -s -o /dev/null "$url"
|
||||
done
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue