I admit, my first thought on seeing the title was "What's wrong with xxd?"<p>This is nice! I like the colorization a lot -- it's like with source code, you don't realize how much you rely on the colors until you get a new computer and need to download syntax definitions for your editor again. Only feature I <i>really</i> think is missing is line numbers.<p>Nicely done!
One ludicrous nitpick: the logo doesn't show anything hexyl, that's 1,2,3,5-tetramethylbenzene. If it was a functional group, it might be 3,4,5-trimethylbenzyl or something like that.<p>Hexyl would look like:<p><pre><code> R
\/\/\/</code></pre>
It is possible to use also radare2[1] for this, along with radiff2. It provides more options and has zero external dependencies.<p>[1] <a href="https://github.com/radare/radare2" rel="nofollow">https://github.com/radare/radare2</a>
This is great. The same author also wrote insect, which is cool, too. <a href="https://github.com/sharkdp/insect" rel="nofollow">https://github.com/sharkdp/insect</a>
For something with a little more firepower, I like: <a href="https://github.com/evanmiller/hecate" rel="nofollow">https://github.com/evanmiller/hecate</a>
the author appears to be a true rust master, he wrote quite a few neat programs in rust, very impressive and that actually got me interested in rust lang
I use hexer for this, which is an editor too.<p><a href="http://blog.metaclassofnil.com/?p=757" rel="nofollow">http://blog.metaclassofnil.com/?p=757</a><p>There's also a vim mode for hex, which I use less often:<p><a href="https://vi.stackexchange.com/questions/2232/how-can-i-use-vim-as-a-hex-editor" rel="nofollow">https://vi.stackexchange.com/questions/2232/how-can-i-use-vi...</a>
I do not use a hex editor/viewer often. Not at all. But when I do, I am painfully aware of how sparse my toolbelt just became.<p>This little program should fit nicely into that category. An area I would like to explore, but have little-to-none incentives.
I've personally found vbindiff excellent for viewing files as hex: <a href="https://www.cjmweb.net/vbindiff/" rel="nofollow">https://www.cjmweb.net/vbindiff/</a>
The colorized output is a nice incremental improvement on xxd. And, I think that it's nice that the README doesn't unnecessarily emphasize that it's written in Rust.
Slightly off tangent: One tool I have used to dump data (and more) is cxmon. A very nice monitor if one grew up using monitor cartridges on C64, Amiga etc:<p><a href="http://cxmon.cebix.net/" rel="nofollow">http://cxmon.cebix.net/</a><p><a href="https://github.com/cebix/macemu/tree/master/cxmon" rel="nofollow">https://github.com/cebix/macemu/tree/master/cxmon</a>
Cool tool :) having a hex dumper that understood UTF-8 and dumped the characters as one of the columns would be awesome too. These days, ASCII is a small subset of strings.
Sorry to ask, but what is he use case for a hex viewer like this? What are the kinds of projects you might be working on when you use something like this?
why am i seeing ugly background-colors with rxvt-unicode <a href="https://imgur.com/a/qkzAkqR" rel="nofollow">https://imgur.com/a/qkzAkqR</a> instead of the good foreground colors I see in xfce4-terminal <a href="https://imgur.com/a/LY6bPn9" rel="nofollow">https://imgur.com/a/LY6bPn9</a><p>i do seem to have 256 colors in urxvt
my $TERM is rxvt-256color and i have rxvt-unicode-256color installed
If I can make a suggestion - I don't mind the program being slow because of all the logic - how would it be if you didn't give special status to ascii but instead tried to intelligently assume a string encoding for strings and accordingly colored "binary" vs "text" (utf-8, utf-16)