summaryrefslogtreecommitdiff
path: root/copy_start_nevermind.sh
diff options
context:
space:
mode:
Diffstat (limited to 'copy_start_nevermind.sh')
-rwxr-xr-xcopy_start_nevermind.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/copy_start_nevermind.sh b/copy_start_nevermind.sh
index 947d1b0..b16418f 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