Open Geczy opened 1 month ago
ooo, this could be a difference in our Slack settings.
I'm only using the plugin heavily for one account at the moment, and I've enabled [x] Format messages with markup
for it. That's under the "Advanced" Preferences menu, "Input options" section. This is on the desktop Slack.app on macos.
mostly related: A "Copy as Rich Text" option would be interesting. I've used this page / app for editing Google Slides presentations, I suspect it wouldn't be too awful to implement the same for VS Code.
yep it works with that option checked. i wish there was a quick way to toggle it off and on because i use it as well for some other generated messages, but turn it back off when i'm done and want to just type messages myself with keyboard rich text shortcuts
i just realized that if you copy any text in a <pre>
, like on your browser, and paste it to slack, it will paste as a code block
so i'm wondering if this vscode extension can copy with rich text instead of markdown?
see vid:
this works to copy both rich text and plain text to keyboard, letting mac decide which one to paste depending on source:
plainText="Your plain text here"
htmlContent="<b>bolded text</b>" # Example HTML content
# Convert HTML content to hex for the clipboard
htmlHex=$(echo "$htmlContent" | hexdump -ve '1/1 "%.2x"')
# Use AppleScript to set both the plain text and the HTML content of the clipboard
osascript -e "set the clipboard to {text:\"${plainText}\", «class HTML»:«data HTML${htmlHex}»}"
any idea what's happening here?