Add support for mailto: URLs too (without `//') - 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 7ef7a301f21cae3f4d99b6f11684bde2caa7cb8d
(DIR) parent fab177174fc5bfe27675b37fb6513676d8ae59e3
(HTM) Author: Leonardo Taccari <iamleot@gmail.com>
Date: Sun, 30 Sep 2018 04:11:13
Add support for mailto: URLs too (without `//')
Diffstat:
openers/mailto | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff -r fab177174fc5 -r 7ef7a301f21c openers/mailto
--- a/openers/mailto Sat Sep 29 12:30:07 2018 +0200
+++ b/openers/mailto Sun Sep 30 04:11:13 2018 +0200
@@ -2,7 +2,8 @@
for u in "$@"; do
if [ "${PLUMB_OPEN}" = "yes" ]; then
- to="${u#*://}"
+ u="${u#*:}"
+ to="${u#//}"
tmux new-window "comp -to \"${to}\""
fi
done