]> git.rmz.io Git - dotfiles.git/commitdiff
ranger: rifle to support urls as well
authorSamir Benmendil <me@rmz.io>
Tue, 4 Oct 2016 19:17:53 +0000 (20:17 +0100)
committerSamir Benmendil <me@rmz.io>
Tue, 4 Oct 2016 19:17:53 +0000 (20:17 +0100)
ranger/rifle.conf

index 9a61d1b11fdf50748bdbdaefd3bac9c33976a3b5..5b231d07b2649025742e6f30443910e8a2e03d6a 100644 (file)
@@ -52,6 +52,9 @@
 match ^https?://www.youtube.com/watch\?, has mpv, X, terminal = mpv -- $1
 match ^https?://www.youtube.com/watch\?, has mpv, X, flag f   = mpv --quiet -- $1
 
+# open web url with BROWSER
+match ^https?://, X, flag f = $BROWSER -- "$@"
+
 #-------------------------------------------
 # Websites
 #-------------------------------------------