diff options
author | Thalia Wright <vesperous@protonmail.com> | 2020-05-26 01:58:55 -0700 |
---|---|---|
committer | Thalia Wright <vesperous@protonmail.com> | 2020-05-26 01:58:55 -0700 |
commit | 47b5bdf80616a3d95791ae05fb81e87b6a47be41 (patch) | |
tree | fd91f3780fe56e6fb6b56cbac7172847fb45ed1f | |
parent | 22c71c355ca4f4e965c3d07e9ac37b0da7349255 (diff) |
Expanded url scheme support and fixed issue with tilde in url
-rw-r--r-- | config.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -239,7 +239,7 @@ MouseKey mkeys[] = { static char *openurlcmd[] = { "/bin/sh", "-c", "st-urlhandler", "externalpipe", NULL }; static char *copyurlcmd[] = { "/bin/sh", "-c", - "tmp=$(sed 's/.*│//g' | tr -d '\n' | grep -aEo '(((http|https)://|www\\.)[a-zA-Z0-9.]*[:]?[a-zA-Z0-9./@$&%?$#=_-]*)|((magnet:\\?xt=urn:btih:)[a-zA-Z0-9]*)' | uniq | sed 's/^www./http:\\/\\/www\\./g' ); IFS=; [ ! -z $tmp ] && echo $tmp | dmenu -i -p 'Copy which url?' -l 10 | tr -d '\n' | xclip -selection clipboard", + "tmp=$(sed 's/.*│//g' | tr -d '\n' | grep -aEo '(((http|https|gopher|gemini|ftp|ftps|git)://|www\\.)[a-zA-Z0-9.]*[:]?[a-zA-Z0-9./@$&%?$#=_-~]*)|((magnet:\\?xt=urn:btih:)[a-zA-Z0-9]*)' | uniq | sed 's/^www./http:\\/\\/www\\./g' ); IFS=; [ ! -z $tmp ] && echo $tmp | dmenu -i -p 'Copy which url?' -l 10 | tr -d '\n' | xclip -selection clipboard", "externalpipe", NULL }; static char *copyoutput[] = { "/bin/sh", "-c", "st-copyout", "externalpipe", NULL }; |