[Feature] Add copy context menu to the Diffing view
What feature would you like to see?
Right-click context menu copy functionality to the Diffing view, similar to what currently exists in the main Hex editor view. This would include "Copy" and "Copy as..." buttons (with submenus "ASCII String", "Address", "C Array", "C++ Array", etc.).
How will this feature be useful to you and others?
It makes copying data from the Diffing view much easier
Request Type
- I can provide a PoC for this feature or am willing to work on it myself and submit a PR
Additional context?
This functionality already exists in hex::plugin::builtin::ViewHexEditor::registerMenuItems, but in its current form, it would require to copy-pasting all these lines to hex::plugin::diffing::ViewDiff::registerMenuItems (along with some additional code to add the right-click context menu itself).
I don't think currently there's a clean and simple way to expose copy menu items, so I want to discuss this architectural problem before opening a PR.
Source: WerWolv/ImHex