From 95287881c3a248633e0283563bbf92d0d04e8d61 Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Mon, 23 Aug 2021 09:54:41 +0200 Subject: [PATCH 1/2] add munsubscribe script --- local/bin/munsubscribe | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 From 740fb51f02695d67893f693affa9c5ac61125305 Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Mon, 23 Aug 2021 09:56:04 +0200 Subject: [PATCH 2/2] add temp/newbrowser spawners --- config/qutebrowser/config.py | 4 ++++ 1 file changed, 4 insertions(+) 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')