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 request: (repeating) byte offset header #19

Open
c0d3z3r0 opened this issue Apr 28, 2024 · 2 comments
Open

Feature request: (repeating) byte offset header #19

c0d3z3r0 opened this issue Apr 28, 2024 · 2 comments

Comments

@c0d3z3r0
Copy link

Very often I find myself counting (horizontal) byte offsets. While the hex space option already helps a lot, it's still not optimal. I would love to see a header like in quickly hacked-together mockup:

image

A second option could enable repeating of that header at a defined offset, e.g. each 0x100 bytes.

image

The code would need to respect options like hex spacer, column count (probably the most difficult one), vertical split. Also, I'm not sure what the best behaviour would be when scrolling up/down.

@8051Enthusiast
Copy link
Owner

Sounds good! I was wondering how I'd deal with column counts that are not divisible by 16, but it seems that other hex editors like radare2 always just begin at 00 and go up from that instead of actually containing the last digits, which is the only sensible behavior in that case I guess.

Also, I'm not sure what the best behaviour would be when scrolling up/down.

Do you mean whether the secondary headers should scroll with the content or stay at the fixed position on the screen?

@c0d3z3r0
Copy link
Author

Also, I'm not sure what the best behaviour would be when scrolling up/down.

Do you mean whether the secondary headers should scroll with the content or stay at the fixed position on the screen?

Yep. Keeping it at a fixed position would require updating it (00 -> 10, 01 -> 11) or simply using x0, x1, x2 instead of 00, 01, .... Probably it's easier to let it move with the content?

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

No branches or pull requests

2 participants