Change the output of `-n' option as TSV (opener-url 2-ple) - 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 36ab61a3b7f03f6bd0dd2aa75eb129a5a457777a
(DIR) parent ad9d22a08b9ac9c70ccccb3861c16b3a02b1cb82
(HTM) Author: Leonardo Taccari <iamleot@gmail.com>
Date: Thu, 13 Sep 2018 20:58:27
Change the output of `-n' option as TSV (opener-url 2-ple)
Instead of printing `<opener> "<url>"' format the output as a TSV 2-ple (easier
to parse and probably also a bit nicer).
Diffstat:
plumb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff -r ad9d22a08b9a -r 36ab61a3b7f0 plumb
--- a/plumb Thu Sep 13 16:17:30 2018 +0200
+++ b/plumb Thu Sep 13 20:58:27 2018 +0200
@@ -55,7 +55,7 @@
export PLUMB_OPEN
if [ "${PLUMB_OPEN}" = "no" ]; then
- echo "${opener} \"${url}\""
+ printf "%s\t%s\n" "${opener}" "${url}"
fi
${PLUMB_OPENERS_PATH}/${opener} "${url}"