repo: uritools
action: commit
revision: 
path_from: 
revision_from: 2cd1a579e8c4178b8654692a2a921bdc625ff577:
path_to: 
revision_to: 
git.thebackupbox.net
uritools
git clone git://git.thebackupbox.net/uritools
commit 2cd1a579e8c4178b8654692a2a921bdc625ff577
Author: epoch 
Date:   Thu Feb 17 01:13:07 2022 +0000

    copy_start_nevermind got a "split" option. added rfc-search to install target. wikipedia-specific uristart.conf got another line

diff --git a/Makefile b/Makefile
index 6683baba42ac33504375a783717dfc6c5f47038a..
index ..25ef0bf8c6991926577023f9a7a4f6f55cd833fe 100644
--- a/Makefile
+++ b/Makefile
@@ -51,4 +51,5 @@ install: all
 	install -t $(PREFIX)/bin shorten
 	install -t $(PREFIX)/bin urnresolve
 	install -t $(PREFIX)/bin urnstart
+	install -t $(PREFIX)/bin rfc-search
 	chgrp shorten $(PREFIX)/bin/shorten && chmod g+s $(PREFIX)/bin/shorten
diff --git a/contrib/wikipedia.uristart.conf b/contrib/wikipedia.uristart.conf
index 7a5936e661f4b05796a9174ee711510a46e0a47b..
index ..177ed88a3ec981007386262ab2f8b10b06f226a4 100644
--- a/contrib/wikipedia.uristart.conf
+++ b/contrib/wikipedia.uristart.conf
@@ -1 +1,2 @@
 s https d en.wikipedia.org p /wiki/*:	wikipedia-handler "$(printf "%%s\n" '%p' | sed 's|^/wiki/||')"
+s https d en.wikipedia.org p /w/index.php q *title=Special*Search* q *search=*:	wikipedia-search-handler '%U'
diff --git a/copy_start_nevermind.sh b/copy_start_nevermind.sh
index 947d1b0903e754996b31d1d9b53ebd29a81f3bad..
index ..b16418f8c1d34be94ad7457f7393a8fdd37ef90f 100755
--- a/copy_start_nevermind.sh
+++ b/copy_start_nevermind.sh
@@ -22,7 +22,7 @@ if [ "$with" != "$(urigetline -a "$uri" < <(uristart.conf))" ];then
   with="[multiple matches]"
 fi

-selection="$(printf "start with: %s\nremote_csn\ncopy\nshorten\nunshorten\ntitle\nverbose\nforget\nQR-image\nQR\n%s\n" "${with}" "$(printf "%s\n" "$uri" | uricut | grep -v '^whole')" \
+selection="$(printf "start with: %s\nremote_csn\ncopy\nshorten\nunshorten\ntitle\nverbose\nforget\nsplit\nQR-image\nQR\n%s\n" "${with}" "$(printf "%s\n" "$uri" | uricut | grep -v '^whole')" \
              | choose "${prompt}")"
 #            | choose "$(printf "uri: '%s'\nwill be ran with: %s\n" "$uri" "$(urigetline "$uri")" )" -default start )"
 echo "$selection"
@@ -80,6 +80,15 @@ unshorten)
   exit 0
   ;;

+split)
+  ret="$(printf "%s\n" "$uri" | tr ' ' '\n' | tr -s ' ' | choose "split> ")"
+  if [ "$ret" ];then
+    ## do NOT want newlines in the clipboard.
+    printf "%s" "$ret" | xclip -i
+  fi
+  exit 0
+  ;;
+
 QR-image)
   escaped="$(uriescape "$uri")"
   file=~/Pictures/qr-codes/"${escaped}".png

-----END OF PAGE-----