diff --git a/config/qutebrowser/config.py b/config/qutebrowser/config.py index 52ef7bd..97d1bba 100644 --- a/config/qutebrowser/config.py +++ b/config/qutebrowser/config.py @@ -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') diff --git a/local/bin/munsubscribe b/local/bin/munsubscribe index 82eeaef..4552687 100755 --- a/local/bin/munsubscribe +++ b/local/bin/munsubscribe @@ -1,9 +1,8 @@ #!/bin/sh - if [ -z "$*" ]; then exec munsubscribe . else - for url in $(mshow -qh list-unsubscribe "$@" | grep -o ']*>' | sed -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