hexplay icon indicating copy to clipboard operation
hexplay copied to clipboard

feature request: colorization and side labels

Open m4b opened this issue 7 years ago • 2 comments

Hello!

Great crate :)

So, I'm thinking about two features, first:

  1. Would it be possible to support colorizing sub ranges of the hextable, e.g.:
00000120  00 00 00 00 00 00 00 00  00 00 00 00 00 4d 00 00  |.............M..|
00000130  00 03 00 04 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000140  00 00 00 00 00 6f 00 00  00 03 00 05 00 00 00 00  |.....o..........|
00000150  00 00 00 00 00 00 00 00  00 00 00 00 00 33 00 00  |.............3..|
00000160  00 12 00 03 00 00 00 00  00 00 00 00 00 0b 00 00  |................|
00000170  00 00 00 00 00 58 00 00  00 12 00 04 00 00 00 00  |.....X..........|
00000180  00 00 00 00 00 28 00 00  00 00 00 00 00 7b 00 00  |.....(.......{..|

Specifically, I'd like to the table by doing something like table.colorize(10..100, Red), where the color format is something perhaps from termion, etc., and then the range from 10..100 is colorized.

  1. I'd like to put labels (with optional color) to the right of the ascii:
00000120  00 00 00 00 00 00 00 00  00 00 00 00 00 4d 00 00  |.............M..| Some arbitrary text
00000130  00 03 00 04 00 00 00 00  00 00 00 00 00 00 00 00  |................|

How hard would it be to add something like this?

Thanks and keep up the good work!

m4b avatar Jul 24 '17 03:07 m4b

Looks like labels are the only part of this issue that aren't done yet?

ErichDonGubler avatar May 08 '18 21:05 ErichDonGubler

Yes, the colorization part is done (thanks @m4b!). No work has been done on the labels,

tmoers avatar May 09 '18 05:05 tmoers