sharkdp / hexyl

A command-line hex viewer
Apache License 2.0
9.12k stars 230 forks source link

specify bytes per line? #232

Open milnak opened 16 hours ago

milnak commented 16 hours ago

Maybe I'm missing how, but I can't find a way to specify how many bytes per line.

> hexyl .\zipflop.bat
┌────────┬─────────────────────────┬─────────────────────────┬────────┬────────┐
│00000000│ 40 65 63 68 6f 20 6f 66 ┊ 66 0d 0a 69 66 20 25 31 │@echo of┊f__if %1│

has 16-bytes per line

> hexyl --panels 1 .\zipflop.bat
┌────────┬─────────────────────────┬────────┐
│00000000│ 40 65 63 68 6f 20 6f 66 │@echo of│

8 bytes per line.

Any way to have a single panel with 16 bytes per line, for example?

Aaron-Rumpler commented 4 hours ago

Looks like there's no option to change it from 8 bytes per panel. I do have a draft PR (#149) which adds the ability to remove the separators between panes (amongst a few other formatting options), but it's quite out of date (a bunch of PRs with new features (like the --panels option) that change the same code have been merged since). I might have another look at it soon.