-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New feature: Copy a part of the asn1 structure to the clipboard #82
Conversation
Update to latest trunk
I like this! It would probably have sense on the "tree" on the left too. |
I imported your commits (almost identically, some whitespace might be slightly different) in branch github-82. |
Not sure how to add a context menu to the tree. The tooltip is already taking the space where a context menu might show up. Shall I try to add the context menu from the hex view to the tree instead of collapsing the tree? |
Mhh, right. What if the click "fixed" the popup as a context menu, thus replacing it but with same functionality? |
Also, a small bug in current contextual menu: it disappears only when entering and exiting it, but is is possible to "just go away" from it and leaving it on screen until you get back and hover it. (this is small and I'm not even sure it's best to fix it or leave it as is) |
I'm also thinking about merging the "esm" branch into "github-82" branch, as the website is fully using modules already anyways (trunk is still not using modules because that complicates usage as a library). |
@olibu I changed the contextual menu to just hide string dump when not available, what do you think about it? |
That's better than the alert. I would change the order of the menu entries. So only the last menu entry is optional. |
I have a branch in my fork to try a menu at the tree view. Is there a way to convert the asn1 to a text shown in the tree view? |
Default content is created in the |
OK, I merged current state, but let's keep this open for improvements regarding the context menu, if you want. |
I updated the context menu in my feature branch https://github.com/olibu/asn1js/tree/feature/treemenu The current context menu on your web site seems to be broken as it shows on top of the screen. |
Thanks! I couldn't import them directly because they didn't include my refactorings, but I tried importing their logic in e41f826.
Strange. It works for me (on both Firefox and Chrome). |
@lapo-luchini : I've uploaded the feature/treeview branch to my homepage. You can find it at https://olibu.github.io/asn1js/ |
This is a pull request to add the functionality to copy a part of the asn1 structure to the clipboard.
The following issues are related to this PR:
Adding a further option to download the selection as a file would be easily possible based on this solution. However, it is not part of the current pull request.