commit 35db6374453e4d2a9b9b161ea27133433fa38b53
parent e9ac19aa1fb596a5084b7e03498f406160645b10
Author: parazyd <parazyd@dyne.org>
Date: Wed, 13 May 2020 12:05:53 +0200
Merge youtube|vimeo|etc. into the http case.
Diffstat:
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/p b/p
@@ -39,10 +39,6 @@ gopher://*)
esac
;;
-ytdl://*|*www.youtube.com*|*vimeo.com*|*dailymotion.com*)
- mpv "$clip" &
- ;;
-
http://*|https://*)
case "$clip" in
*.jpg|*.jpeg|*.JPG|*.JPEG|*.png|*.PNG)
@@ -54,12 +50,19 @@ http://*|https://*)
*.gif|*.GIF)
curl -Ls "$clip" | gifview -a - &
;;
+ *www.youtube.com*|*vimeo.com*|*dailymotion.com*)
+ mpv "$clip" &
+ ;;
*)
ff -new-tab "$clip" &
;;
esac
;;
+ytdl://*)
+ mpv "$clip" &
+ ;;
+
ssh://*)
$TERMCMD ssh "$clip" &
;;