XML Editor: allow copy node with right-click

Bug #1527824 reported by Cynthia
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
New
Wishlist
Unassigned

Bug Description

Feature Request.

In the "XML Editor", right-click [the mouse] on a node in the left pane, choose "copy XML to Clipboard".

For example, if our document looks like:
<1>
  <11>
    <111>
      hello
    </111>
  </11>
  <22>
  </22>
</1>

Selecting "11" will copy "<11><111>hello</111></11>" into the clipboard (formatted nicely, of course).

Use case: I often write programs that generate SVG. I like to use Inkscape to "rough out" drawings and then use the generated SVG as templates in my program code. Currently I "save" the drawing and then copy the XML from the generated SVG file. Being able to right-click on a node in the "XML Editor" would be easier.

su_v (suv-lp)
Changed in inkscape:
importance: Undecided → Wishlist
tags: added: clipboard exporting xmleditor
Revision history for this message
insaner (insaner) wrote :

Just ran into this use case. I would love to see this feature implemented as well.

I would also add that having a button in the XML toolbar as a "hint" that this feature exists would be great as well. Ie, a "copy this set of nodes to clipboard" button, next to the "Duplicate node" button for example.

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.