416
submitted 7 months ago by ElCanut@jlai.lu to c/technology@beehaw.org
you are viewing a single comment's thread
view the rest of the comments
[-] onlinepersona@programming.dev 4 points 7 months ago

Unfortuately, it's manual :) Keyboard shortcut to put the text into the clipboard and then paste it into the comment.

If you're on linux using X11

#!/usr/bin/env nix-shell
#!nix-shell -i bash --packages xautomation xclip

sleep 0.2
printf '[Anti Commercial-AI license](https://creativecommons.org/licenses/by-nc-sa/4.0/)' | xclip -selection clipboard
#(echo '
spoiler Anti Commercial AI thingy #[CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/) # #Inserted with a keystroke running this script on linux with X11 #```bash' #cat "$0" #echo '``` #:::') | xclip -selection clipboard xte "keydown Control_L" "key V" "keyup Control_L"

:::

Anti Commercial-AI license

[-] dev_null@lemmy.ml 1 points 7 months ago

Obviously your way works fine, but I think a browser extension could make it 100% automatic.

[-] onlinepersona@programming.dev 1 points 7 months ago

If you're willing to make one, that'd be great 🙂

Anti Commercial-AI license

this post was submitted on 13 Apr 2024
416 points (100.0% liked)

Technology

37702 readers
528 users here now

A nice place to discuss rumors, happenings, innovations, and challenges in the technology sphere. We also welcome discussions on the intersections of technology and society. If it’s technological news or discussion of technology, it probably belongs here.

Remember the overriding ethos on Beehaw: Be(e) Nice. Each user you encounter here is a person, and should be treated with kindness (even if they’re wrong, or use a Linux distro you don’t like). Personal attacks will not be tolerated.

Subcommunities on Beehaw:


This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

founded 2 years ago
MODERATORS