summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorotlin100 <ottolin@outlook.de>2019-04-27 03:05:31 +0200
committerotlin100 <ottolin@outlook.de>2019-04-27 03:05:31 +0200
commitf7c138b8cb85124808284d67af0c91d0fc76ac22 (patch)
treed14d53e46da2c0aff32bd4ef21c5827602e59cee /config.h
parenta36768bfa1417d8e8268a26d13887d50291a9cf6 (diff)
read multiline URLs and URLs without 'http://' from mutt
Diffstat (limited to 'config.h')
-rw-r--r--config.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.h b/config.h
index 06c0264..c767671 100644
--- a/config.h
+++ b/config.h
@@ -206,7 +206,7 @@ MouseKey mkeys[] = {
};
static char *openurlcmd[] = { "/bin/sh", "-c",
- "grep -aEo '(http|https)://[a-zA-Z0-9./?=_-]*' | uniq | dmenu -l 10 | xargs -r xdg-open",
+ "sed 's/.*│//g' | tr -d '\n' | grep -aEo '((http|https)://|www\\.)[a-zA-Z0-9./?=_-]*' | uniq | sed 's/^www./http:\\/\\/www\\./g' | dmenu -l 10 | xargs -r xdg-open",
"externalpipe", NULL };
static Shortcut shortcuts[] = {