GTG

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

Bug #830968 reported by Izidor Matušov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GTG
Won't Fix
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)
description: updated
Izidor Matušov (izidor)
Changed in gtg:
assignee: Izidor Matušov (izidor) → nobody
Revision history for this message
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)
Changed in gtg:
assignee: nobody → huxuan (huxuan)
Revision history for this message
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
Jeff Fortin Tam (kiddo)
Changed in gtg:
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.