0xfalafel / hextazy

A coloful hexadecimal editor
MIT License
41 stars 1 forks source link

braille dump instead of `xxxxxxxx`? #3

Open egasimus opened 2 months ago

egasimus commented 2 months ago

"Braille dump" is a way of representing non-alphanumeric characters using distinct Unicode symbols. See this for example and rationale: https://justine.lol/braille/

I'm not able to provide a pull request at the moment, but if you're interested in implementing this feature, you're welcome to copy the charset from my JS implementation: https://github.com/hackbg/toolbox/blob/main/dump/dump.ts#L10 :slightly_smiling_face:

0xfalafel commented 2 months ago

That does look cool, and I am curious about it 🧐. I don't think I would make it a default, but we can probably add a command switch for it

0xfalafel commented 2 months ago

I have just added a braille mode, which can be activated with -b or --braille.

Your JS implementation was very useful. Thanks! 🙂 I have just changed 2 characters that were confusing as they were very similar to the cursor.

It's on the main branch if you want to try it. It will be in the 0.8 release, but there is quite a bit of work I plan to do before the next release.

0xfalafel commented 2 months ago

Braille mode

0xfalafel commented 2 months ago

I have also added -B as an option to do braille dump for values 0x80 and above.

I am pondering making it the default, since it does give a bit more information, and isn't too distracting like the emojis of the values below 0x10.

egasimus commented 2 months ago

Freakin' awesome! :grin: