Skip to content
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

[Feature] SetSelection API in the C# Plugin (ImHexLibrary) #2030

Open
1 task done
msm-code opened this issue Dec 26, 2024 · 1 comment
Open
1 task done

[Feature] SetSelection API in the C# Plugin (ImHexLibrary) #2030

msm-code opened this issue Dec 26, 2024 · 1 comment

Comments

@msm-code
Copy link

What feature would you like to see?

I'd like to add an API to set the current selection in ImHex. I've investigated the functions available to C# plugins, especially Memory, and it looks like that while I can get the current selection, there's no way to set it.

How will this feature be useful to you and others?

I think about implementing a ImHex sync plugin to my disassembler (Ghidra), similar like Gx64Sync exists for x64dbg syncing. The idea is to sync the bytes view between the two programs.

Right now I don't think this is possible with the C# API. I know that it's possible with C++ API, but I - personally - would rather implement it in C#, because it's easier, cross platform, and won't require frequent recompilation.

If this feature sounds reasonable, I can take a shot at implementing this feature and send you a PR - but I want to ask first if it's something that will be merged.

Request Type

  • I can provide a PoC for this feature or am willing to work on it myself and submit a PR

Additional context?

No response

@WerWolv
Copy link
Owner

WerWolv commented Dec 26, 2024

Hey! Feel free to open a PR with it, that's certainly something that's useful for other people as well :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants