Sharif Haason
dfad7b3faf
Refactor to avoid code duplication
2023-06-20 10:55:07 -04:00
Sharif Haason
ef9b530d6a
Finish comment
2023-06-20 10:46:48 -04:00
Sharif Haason
a3268b8791
Correctly handle discontinuous input i.e. stdin
2023-06-20 10:45:13 -04:00
David Peter
5f0373184f
Add --characters, change meaning of -C
...
This changes the meaning of `-C` to "show the character panel". The long
version `--no-characters` can still be used to hide the character panel.
closes #187
2023-05-10 22:09:19 +02:00
David Peter
57d18482ba
Add Copy and Clone for Endianness
2023-04-26 14:53:37 +02:00
David Peter
9be018fbb9
Add -e alias for --endianness=little
2023-04-25 09:12:26 +02:00
David Peter
cba717b783
Minor doc comment adjustment
2023-04-25 08:51:31 +02:00
David Peter
580f865c4a
Rename function
2023-04-25 08:50:55 +02:00
David Peter
20450310c9
Help text adjustments, do not require group-size to be present
2023-04-25 08:48:39 +02:00
RinHizakura
b251575d94
Change design for endianness command line option
2023-04-24 23:44:49 +08:00
RinHizakura
58b038af27
Change le to non-abbreviated name little endian
2023-04-24 23:13:28 +08:00
RinHizakura
d703cdfd78
Fix comment error and grammarly
2023-04-24 23:10:25 +08:00
RinHizakura
43f8b92502
Fix test for endianness
2023-04-24 22:59:23 +08:00
RinHizakura
08b903270f
Change endianness from boolean type to enum
2023-04-24 22:59:19 +08:00
David Peter
dd601e4792
Run cargo fmt
2023-04-21 21:28:52 +02:00
RinHizakura
564cf64b1b
Support both little and big endian dump
2023-04-21 21:26:43 +02:00
sharif and David Peter
dfd7bdef49
Update src/bin/hexyl.rs
...
Co-authored-by: David Peter <sharkdp@users.noreply.github.com >
2022-12-07 17:33:35 -05:00
sharif
fd4aee2b85
Merge branch 'master' into owo
2022-12-07 16:51:30 -05:00
Sharif Haason
cf8e7ec079
Revert default color option to always
2022-12-07 16:48:20 -05:00
Sharif Haason
faa9866d11
Change group_bytes to satisfy merge conflict
2022-12-07 16:44:11 -05:00
David Peter
1df35eeb63
Renme --group-bytes to --group-size
...
For `xxd`-compatibility reasons
see #121
2022-12-07 21:50:12 +01:00
David Peter
437a15f3d6
One panel by default is terminal is not wide enough
...
closes #182
2022-12-07 21:35:34 +01:00
David Peter
70fa092df1
Do not fail if output is not a TTY for --panels=auto
...
closes #184
2022-12-07 21:33:20 +01:00
Sharif Haason
b2f0e75ed2
Satisfy clippy
2022-12-06 13:22:34 -05:00
Sharif Haason
4fc0c1f1b0
Replace anstyle with owo-colors
2022-12-06 11:27:16 -05:00
Sharif Haason
4ce6e9d799
Remove now unnecessary byte_char_panel_g
2022-12-06 11:26:19 -05:00
Sharif Haason
5bd76fd11b
Replace is-terminal with supports-color and make auto default for color
2022-12-06 11:24:53 -05:00
David Peter
421bd73ec1
Revert "Replace libc with rustix"
...
This reverts commit 571312dd6e .
2022-12-05 09:52:27 +01:00
David Peter
7d38f70918
Show 0x00-bytes as '⋄' instead of '0', closes #166
2022-12-05 09:45:38 +01:00
David Peter
8577a17b14
Ignore EPIPE silently
...
fixes a regression introduced in a6aeabfde4
closes #181
2022-12-05 09:30:13 +01:00
David Peter
f8601e5bc9
Merge pull request #180 from sharifhsn/altdeps
...
Replace outdated dependencies
2022-12-05 09:03:40 +01:00
Sharif Haason
571312dd6e
Replace libc with rustix
2022-12-04 21:48:10 -05:00
Sharif Haason
188e753675
Replace atty with is-terminal
2022-12-04 21:42:44 -05:00
Sharif Haason
030235afb7
Improve help text for --base
2022-12-04 21:36:42 -05:00
Sharif Haason
7847e8cd33
Remove debug statement
2022-11-27 19:45:33 -05:00
Sharif Haason
5e3c49f933
cargo fmt
2022-11-27 17:19:48 -05:00
Sharif Haason
fc794b290c
Account for new panel arguments
2022-11-27 17:19:33 -05:00
Sharif Haason
e6000a56f4
Parse -b argument
2022-11-27 17:18:38 -05:00
Sharif Haason
2861cd51ac
Adjust panel calculation to account for base and group
2022-11-27 17:17:52 -05:00
Sharif Haason
a8cffbb6df
Move group_bytes so it can be used for panels
2022-11-27 17:17:25 -05:00
Sharif Haason
7bb6343d2a
Add --base/-b argument
2022-11-27 17:16:48 -05:00
Sharif Haason
7de17c4f35
Adjust spaces on empty lines
2022-11-27 17:15:26 -05:00
Sharif Haason
ec61c2a789
Print header only if non-empty
2022-11-27 17:14:30 -05:00
Sharif Haason
7f7b88a914
Adjust tests
2022-11-27 17:13:36 -05:00
Sharif Haason
85fa75ba67
Differentiate format on base
2022-11-27 17:11:55 -05:00
Sharif Haason
d5d645fc48
Add Base to Printer
2022-11-27 17:11:21 -05:00
Sharif Haason
252b4e84c3
Merge branch 'master' into anstyle
2022-11-27 10:03:53 -05:00
David Peter
31c0bcfeae
Improve error messages
2022-11-26 13:07:06 +01:00
RinHizakura
c0f94ad6aa
Refine the support of byte grouping
2022-11-26 13:07:06 +01:00
RinHizakura
55fed5e3c0
Fix for clap4
2022-11-26 13:07:06 +01:00