ImHex
ImHex copied to clipboard
Removing bytes will be saved to the file instantly?
Operating System
Windows
What's the issue you encountered?
I'm note sure if this is a bug, though it wasn't obvious to me that when you right click on some selected hex code > remove > set the bytes will be removed from the file instantly it then doesn't matter if you close the provider and discard your changes, since the changes (removed bytes) are already done. Is this really how it supposed to be?
How can the issue be reproduced?
Just open any file, select some bytes, right click > remove > set.
ImHex Version
1.25.0
ImHex Build Type
- [ ] Nightly or built from sources
Installation type
Windows Portable
Additional context?
No response
This is indeed the intended way of handling files and not a bug. It's a bit hard to explain, but the way ImHex works implies certain limitations on what can and can't be done. I am not trying to say this is how it will stay for eternity, but changing this requires writing a lot of new code and coordinating things with WerWolv. There is just not enough enthusiasts to implement other modes for file processing.
I propose replacing the "bug" label with the "feature request".
The other issue (#1548) is closed presumably as a duplicate, which is fair enough, but I will note for future context that the overall issue is most operations apply instantly and save to the file without any explicit indication, not just this particular operation.
I do sympathize with this hex editor being coded with a particular workflow in mind, but this also makes it undesirable and dangerous for my typical use cases, which is fine; I'll just use another tool or maybe submit a PR at some point if I get particularly motivated.