st

Luke's fork of the suckless terminal: vim-bindings, Xresrouces colors, transparency
Log | Files | Refs | README | LICENSE

commit 05cc5be681229da36c6a0bc45341d01b43b83664
parent a36768bfa1417d8e8268a26d13887d50291a9cf6
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Fri, 26 Apr 2019 20:40:39 -0400

urls over lines

Diffstat:
Mconfig.h | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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[] = {