I would find it very useful to be able to copy the current tab’s URL with the page title as a clickable link. This is quite similar to the “Copy URL as Markdown” action which also includes the page title, but would be the equivalent for non-Markdown apps that accept HTML from the clipboard (i.e. all Apple apps that support rich text, Electron-based apps such as Slack, etc.)
For Safari, I created a bash script that does this via AppleScript and can be called from an automation tool such as Alfred:
#!/usr/bin/env bash
set -euo pipefail
# Use osascript to get URL and Title from Safari
url=$(osascript -e 'tell application "Safari" to return URL of front document')
title=$(osascript -e 'tell application "Safari" to return name of front document')
# Strip Safari profile name
title=$(echo "$title" | sed 's/^[^—]*— //')
# Create HTML string with UTF-8 encoding
html=$(echo "<meta charset='utf-8'><a style=\"font-family: sans-serif\" href=\"${url}\">${title}</a>" \
| hexdump -ve '1/1 "%.2x"')
# Create plain representation (Markdown syntax), escaped for usage in osascript below
plain=$(echo "[${title}](${url})" | sed 's/"/\\"/g')
# Use AppleScript to set the clipboard to HTML format and plain text.
# When omitting the plain text, some apps such as Slack will refuse to
# paste it - despite actually preferring the HTML version).
osascript <<EOF
set the clipboard to {«class HTML»:«data HTML${html}», string:"${plain}"}
EOF
# Return tab title for further processing (i.e. success message)
echo -n "$title"
(Details: https://aaron.cc/copying-the-current-safari-tab-as-a-to-the-clipboard-as-a-clickable-link/)
This script is only partially working for Orion at the moment, which I have filed as a separate bug: https://orionfeedback.org/d/7764-name-of-front-document-in-apple-script-returns-untitled
Anyway, I think it could be interesting to have this as a native feature in Orion. I use it often to reference Jira tickets in emails or in Slack, so a helpful title is included and not just the plain URL.