At the same time, I have the (almost) same project but in C
rHexeD is a small hex editor using the awesome Crossterm as Terminal Library.
You can work on one file
./rhexed my_file
or, if you need, on several files in the same time, with the ability to navigate from file to file.
./rhexed my_file_1 my_file_2 my_file_3 ...
Some commands are available, and others will come later
- hjkl or arrow move
- g move to the beginning of the file
- G move to the end of the file
- ( move to the beginning of the line
- ) move to the end of the line
- [ move to the beginning of the page
- ] move to the end of the page
- n go to the next page
- b go to the previous page
- N go to the next file
- B go to the previous file
- J go to a specified address
- a insert a byte at cursor position
- x cut a byte
- y copy a byte or a range of selected bytes
- p paste a byte or a range of selected bytes
- i insert mode
- <ESC> quit insert mode
- <TAB> show / hide title
- r reload file
- w write file
- q quit