Bug 230895 - paste clipboard content as values instead of chars
Summary: paste clipboard content as values instead of chars
Status: ASSIGNED
Alias: None
Product: okteta
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Unspecified
: NOR wishlist
Target Milestone: ---
Assignee: Friedrich W. H. Kossebau
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-15 23:28 UTC by matthias sweertvaegher
Modified: 2016-06-08 06:50 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description matthias sweertvaegher 2010-03-15 23:28:42 UTC
Version:           0.4 (using KDE 4.4.1)
Installed from:    openSUSE RPMs

unless I am missing something... I didn't find any way to copy my clipboard contents as values instead of chars.

Although you can place the cursor both in the value panel as in the char panel, it always pastes the content in the char panel.

Basically, I wanted to use okteta as a hex decoder :)
Comment 1 Friedrich W. H. Kossebau 2010-03-15 23:59:06 UTC
Hi Matthias, yes, you are missing something :) The "Copy As" submenu of the "Edit" menu. Select "Values" there.
Currently a plain copy only copies the raw data. If it is text it of course appears as the characters of the local encoding if pasted.
But you are not the first one to be confused by this. Perhaps one day I will (re-)add the feature, that as an alternative the clipboard also gets the decoded data like visible in the active column, so values or text (with selected encoding).
And Okteta misses a context menu, you might have found that option there.
Comment 2 matthias sweertvaegher 2010-03-16 00:29:33 UTC
Hi Friedrich,

thanks for your prompt reply! Thanks for your explanation, yet I don't manage to produce the desired effect. 

I have this wordpress exploit which I wanted to examine. It injects javascript code in hex form. So for example, I have something like this: 3C736372697074206C616E67756167653D226A617661736372697074223E66756E63746 ...
I wanted to decode that using okteta, so I tried to paste this content (=the hex data) into the "values pane". It got pasted in the "char pane" though, so I got the following hex data: 33 43 37 33 36 33 37 32 36 39 37 30 37 34 32 30 36 43 36 31 36 45 36 37 37 35 36 31 36 37 36 35 33 44 32 32 36 41 36 31 37 36 36 31 37 33 36 33 37 32 36 39 37 30 37 34 32 32 33 45 36 36 37 35 36 45 36 33 37 34 36 which is not what I want (I want <script language="javascript">funct .. ).

The "copy as" seems to be only valid for copying data TO the clipboard while I want it to be configurable when fetching data FROM the clipboard. When I want to paste data, "copy as" is grayed out (which seems normal to me because I have no selection).

I hope I made my case clear, sorry if I am too elaborate. Or if it is still not clear, I will try again :)

You are right about the context menu, I tried it that way. Second way I tried was through the edit menu where I expected something like "paste as".

btw, thanks for this great program. It is these kind of little tools I don't need often but still need that make the KDE SC a complete solution!
Comment 3 Friedrich W. H. Kossebau 2010-03-16 00:51:40 UTC
Ah, Paste, not Copy (it's even in the report title, but you used the term "Copy" in the body text, it was similar to that mentioned other problem and late in the evening I got this wrong, sorry).

So rather: No, you sadly did not miss anything. It's Okteta which is missing something, support for parsing. Both the infrastructur as well as individual format support. Perhaps this comes for SC 4.5 mid-2010, but might also only be for 4.6 or later. But I am thinking a lot about this, because it is also needed for something else, so... no promises, though ;)

And thanks for the thanks :)
Comment 4 matthias sweertvaegher 2010-03-16 11:00:19 UTC
ah, now I understand the confusion! I guess it was getting late for me too ;) Feel free to adjust the bug description (I tried, but failed)
Comment 5 Hatl 2011-12-11 11:17:37 UTC
still not working...
Comment 6 Alessandro Accardo 2013-04-15 10:48:56 UTC
Please write this feature, it is higly needed by us users.
I remember also that the old KHexEditor had this feature too, so it couldn't be so difficult for you to port it.
Comment 7 Luiz Angelo De Luca 2013-04-23 19:20:05 UTC
You have my vote! Very useful feature.
Comment 8 Vincas Dargis 2015-04-03 08:44:04 UTC
So it's basically "paste hex from clipboard as binary data" ? I would need this feature too..

What Okteta would need is "Paste as" -> "Binary data from HEX"  menu item? I don't think that would be hard to implement... myself..?

Also, "Binary data from base64" and others would be quite usefull.
Comment 9 vgonisanz@gmail.com 2016-06-08 06:50:15 UTC
This feature will be awesome!