gnome-shell-extension-clipboard-indicator icon indicating copy to clipboard operation
gnome-shell-extension-clipboard-indicator copied to clipboard

Feature request to support markup language

Open orschiro opened this issue 6 years ago • 5 comments

Like hyperlinked text.

Video screencast demoing the feature lack:

https://youtu.be/mF_1Roz2V9Y

If someone has an idea how to implement, I am all ears. :-)

orschiro avatar Mar 23 '18 15:03 orschiro

Thank you for this feature request. I would also like to have this functionality :smile: Unfortunately, I am not sure how to implement something like that.

Tudmotu avatar Mar 24 '18 09:03 Tudmotu

Unfortunately, I am not sure how to implement something like that.

Hope someone can jump in and shed some light. Actually the guys from CopyQ support Markups. Going to send them an email if they can help us out here with some advice!

orschiro avatar Mar 24 '18 10:03 orschiro

CopyQ basically uses "text/html" target atom to get/set the rich text in clipboard.

You can print the HTML formatted text with e.g. xclip -selection clipboard -out -target text/html (not sure how to access the data from the extension).

hluk avatar Mar 25 '18 10:03 hluk

@hluk thanks so much for your comment! @Tudmotu does that create any new insights?

orschiro avatar Mar 25 '18 12:03 orschiro

Thanks @hluk ! I'm still not sure how to do the same thing in the context of a gnome-shell extension. Looking at St.Clipboard I don't see any API for that. But looking at Gtk.Clipboard, is seems like there is API for "rich text" and "image". Not sure if we can use that API, but maybe worth checking.

Tudmotu avatar Mar 25 '18 13:03 Tudmotu