We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65d3b1c commit 8607603Copy full SHA for 8607603
scripts/.local/bin/random/,linkify
@@ -31,7 +31,11 @@ elif echo "$url" | grep -qE '^https://teams.microsoft.com'; then
31
channel="$(echo "$url" | grep -o 'channelName=[^&]*' | cut -d= -f2)"
32
printf "[Teams message in %s](%s)" "$team#$channel" "$url"
33
else
34
- title="$(get_title "$url")"
+ title="$(get_title "$url" | sed 's| - YouTube$||')"
35
[ -z "$title" ] && title="$url"
36
printf "[%s](%s)" "$title" "$url"
37
-fi | tee /dev/stderr | pbcopy
+fi | tee /tmp/linkify | pbcopy
38
+
39
+title="$(cat /tmp/linkify | sed 's|.*\[\(.*\)\](.*)|\1|')"
40
+notify "$title" "$url"
41
+cat /tmp/linkify
0 commit comments