Avoid to specify the protocol schema when it is not strictly needed, NFCI. - plumb - Open certain URL patterns with an ad-hoc opener (plumber)
(HTM) hg clone https://bitbucket.org/iamleot/plumb
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) changeset 84d5760adaff5cf0e9069acddfbc7bcedb900e52
(DIR) parent 0f36c273acd3896dfce58a8082cef34ce8cbd74f
(HTM) Author: Leonardo Taccari <iamleot@gmail.com>
Date: Sat, 24 Mar 2018 18:06:25
Avoid to specify the protocol schema when it is not strictly needed, NFCI.
Diffstat:
plumb | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff -r 0f36c273acd3 -r 84d5760adaff plumb
--- a/plumb Sat Mar 24 18:00:49 2018 +0100
+++ b/plumb Sat Mar 24 18:06:25 2018 +0100
@@ -91,8 +91,8 @@
gopher://* )
open "gopher" "$u"
;;
- http://feed.dilbert.com/*/[0-9]*-[0-9]*-[0-9]* | \
- http://dilbert.com/strip/[0-9]*-[0-9]*-[0-9]* )
+ *://feed.dilbert.com/*/[0-9]*-[0-9]*-[0-9]* | \
+ *://dilbert.com/strip/[0-9]*-[0-9]*-[0-9]* )
open "dilbert" "$u"
;;
*://codepad.org/* | *://paste.* | *://pastebin.* | \
@@ -111,12 +111,12 @@
*://*/meta/report.html )
open "txtweb" "$u"
;;
- http://oppressive-silence.com/comic/* | \
- https://nothingsuspicio.us/comics/* )
+ *://oppressive-silence.com/comic/* | \
+ *://nothingsuspicio.us/comics/* )
open "ogimage" "$u"
;;
- http://buttersafe.com/*/*/*/* | \
- http://feedproxy.google.com/*/Buttersafe/* )
+ *://buttersafe.com/*/*/*/* | \
+ *://feedproxy.google.com/*/Buttersafe/* )
open "buttersafe" "$u"
;;
http://* | https://* )