Put into a clipboard also rich text version of copied task description

Reported by Izidor Matušov on 2011-08-22
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Getting Things GNOME!
Wishlist
Xuan (Sean) Hu

Bug Description

When I select task description and copy it into the clipboard, besides text format there should be also rich text format. When I select pasting that selection into e.g. tomboy, it can choose between text and rich text format.

( created from bug #611112 )

Izidor Matušov (izidor) on 2011-08-22
description: updated
Izidor Matušov (izidor) on 2011-11-28
Changed in gtg:
assignee: Izidor Matušov (izidor) → nobody
Izidor Matušov (izidor) wrote :

Just a note:

There is already some code handling export to clipboard -- ./GTG/tools/clipboard.py

Xuan (Sean) Hu (huxuan) on 2012-04-22
Changed in gtg:
assignee: nobody → huxuan (huxuan)
Izidor Matušov (izidor) wrote :

Another round of research:

You need to use gtk.Clipboard for handling clipboard.

Nice tool to have is the code from http://stackoverflow.com/questions/3261379/getting-html-source-or-rich-text-from-the-x-clipboard (it is also as attachement in the case the site goes down) Copy something and run the script.

If you don't know, how the clipboard works in Windows or in X11: It is a system wide place where you put information (copy some text). It supports multiple representation of the same information. For example, when you copy something in LibreOffice, you get a version with richt text (bold, italic, bullets) and plain text version.

The goal is to export selection in that way, that subtasks are represented as bullets in Tomboy or LibreOffice. How to do that? Using gtk.Clibboard.set_with_data()

http://stackoverflow.com/questions/1992869/how-to-paste-html-to-clipboard-with-gtk - general info
http://ubuntuforums.org/showthread.php?t=324477
http://pvanhoof.be/blog/index.php/2006/04/25/clipboard-copying-the-texthtml-target-using-gedit - a plugin for GEdit which copies the selection as HTML

Changed in gtg:
status: Confirmed → Triaged
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers