digitalw0lf / hextor

Hextor - Hexadecimal editor and binary data analyzing toolkit
Other
100 stars 15 forks source link

any option to undo after save file ? #40

Open siyexa2951 opened 1 year ago

siyexa2951 commented 1 year ago

sometime modified file can not run, or need to check ,so need to undo and save back again :(

digitalw0lf commented 1 year ago

It's a common problem of all hex editors which do not load entire file into memory while editing. Only new (changed) bytes are kept in memory, so when you undo some changes, an editor have to read old byte values from original file. When you save (overwrite) a file, old bytes are lost and an editor can no longer reference them.

I understand this would be a good feature and I'm still looking for proper ways to implement it. Most probably it will be some kind of (partial) backup stored before saving a file.

siyexa2951 commented 1 year ago

Thank you for developing such a useful software.😊