repo: uritools
action: commit
revision: 
path_from: 
revision_from: 2e245698850425217aebfbe417f7cd9e87cc5490:
path_to: 
revision_to: 
git.thebackupbox.net
uritools
git clone git://git.thebackupbox.net/uritools
commit 2e245698850425217aebfbe417f7cd9e87cc5490
Author: epoch 
Date:   Thu Jun 30 06:17:49 2022 +0000

    moved stuff from urilaunch to urilist

diff --git a/urilaunch b/urilaunch
index 5bf5b3878b73348f05cbee0fc40a4589dfeafc8a..
index ..46b6a89d949d970ce9c95e1dcea8d2afa7185c1d 100755
--- a/urilaunch
+++ b/urilaunch
@@ -1,18 +1,6 @@
 #!/bin/bash
-#uristart.log /should/ already be uniq'd because of uristart's code now, but might as well not rely on it.
-#you'll probably want to change my gopher-get line to be something useful to you.
-
-### xclip can return nothing and just error out sometimes with:
-### Error: target STRING not available
-
 exec copy_start_nevermind.sh \
-  "$(cat \
-      <(printf "%s\n" "$(xclip -o 2>/dev/null | head -n1)") \
-      <(printf "%s\n" "$(xclip -o -selection clipboard 2>/dev/null | head -n1)") \
-      <(xdotool getwindowfocus | xargs xwindowURI) \
-      <(printf "\n") \
-      <(gopher-get gopher://batou/0/links.txt) \
-      <(cat ~/.cache/uristart.log | sort | uniq) \
+  "$(urilist \
     | choose 'urilaunch>' \
     | cut '-d ' -f1
   )"
diff --git a/urilist b/urilist
new file mode 100755
index 0000000000000000000000000000000000000000..0378f8a0fa425ea0b5ee102172179deb4efe743a
--- /dev/null
+++ b/urilist
@@ -0,0 +1,10 @@
+#!/bin/bash
+cat \
+    <(printf "%s\n" "$(xclip -o 2>/dev/null | head -n1)") \
+    <(printf "%s\n" "$(xclip -o -selection clipboard 2>/dev/null | head -n1)") \
+    <(xdotool getwindowfocus | xargs xwindowURI) \
+    <(printf "\n") \
+    <(cat ~/.cache/uristart.log | tac | awk '!a[$0]++') \
+    <(gopher-get gopher://batou.thebackupbox.net/0/links.txt) \
+    <(rfc-list) \
+    <(man-list)

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