lapo-luchini / asn1js

JavaScript generic ASN.1 parser
ISC License
586 stars 161 forks source link

Button to copy textual representation to clipboard #83

Closed ralienpp closed 8 months ago

ralienpp commented 9 months ago

I think it would be beneficial to add a feature to the context-menu of a node (at least the root), to copy it and its children to the clipboard.

My use case is to visualize two structures, copy the text from both to something like Meld or WinMerge and then see the delta between them. I can still do it in the current version, for which I am very grateful; the proposed feature would save a few clicks and remove the need to scroll when dealing with large structures.

olibu commented 8 months ago

There is a pull request for a feature like this (https://github.com/lapo-luchini/asn1js/pull/82). You can try it from my page at https://olibu.github.io/asn1js/ . Just click on the part in the hex view to copy it.

lapo-luchini commented 8 months ago

I'm also considering a native #61 diff mode, but I'm not sure when that will happen.

lapo-luchini commented 8 months ago

try it from my page

Now available from official website too.

ralienpp commented 8 months ago

Thank you both for your effort, this feature makes me very happy!