heh
heh copied to clipboard
A terminal UI to edit bytes by the nibble.
I think I can do to clean up this code a bit, but I'd love a code review and suggestions to make it better.
Closes #7
Home/End should make the cursor jump to front/end of current line.
Right now multi-byte values are show as little-endian integers, it would be great to also support big-endian.
This might require a big refactor of the way hex/ASCII is currently displayed. Many editors (regardless of being hex editors or not) have the ability to move the cursor to...
Page Up and Page Down should make the cursor jump a screens' worth of bytes (`lines_per_screen` * `bytes_per_line`) since it'd be easier and quicker to navigate the contents of a...
In larger files, keying your way to the selected byte isn't going to cut it. GHex has a "Goto/Jump to Byte" feature that allows a user to input a byte...
Suggested in a [Reddit comment](https://www.reddit.com/r/rust/comments/wj7wm4/comment/ijg2lm2/?utm_source=share&utm_medium=web2x&context=3), but putting it here if there are any ideas. I think it'll be complicated to do this, and I don't think many hex editors support...
As per [this feedback](https://www.reddit.com/r/rust/comments/wj7wm4/comment/ijgnhbn/?utm_source=share&utm_medium=web2x&context=3), - Give more spacing between functions - Add comments to generate rustdoc - Add additional comments on [obscure code](https://github.com/ndd7xv/heh/blob/9970480f2cb0825e918c268bb8b02b80d5b5ab5c/src/screen.rs#L102) I'm extending this beyond the listed recommendations...
# Background If you run something like ```bash kill # which you can probably get with $(ps -ef | grep heh | grep -v grep | awk '{print $2}') ```...