-
-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add more formatting options #149
base: master
Are you sure you want to change the base?
Conversation
Thank you for your contribution. Could you explain the motivation for this change in a bit more detail? And maybe show a few screenshots how the modified output looks like? Or is there an open ticket that discusses this? |
The primary motivation is that I just find the inner separator on the text column kind of annoying sometimes. I also wanted to be able to output without the top and bottom borders (so that line 1 of the output would correspond to the first line of the actual hex dump), but still keep the separator lines. |
Thank you very much for the explanation. I'm inclined to accept a change like this, but I would like if we could think about the command-line interface a bit. For example: is there any way we could avoid introducing multiple new options for this? I also have some questions when looking at the screenshots: should shouldn't this remove the right border as well? |
I agree wrt the command line interface, which is the primary reason this is still a draft PR.
The argument against this would be
With the current spacing, I found doing that to look quite unbalanced. We could do something like this: There is an issue with not having a right border though (which also affects Again, |
okay 👍
Okay, so maybe we rather use something like
Good point. Any suggestions? Regarding the CLI: can we write down some alternative proposals and comare them? Feel free to also suggest breaking changes (like a reuse of the existing |
We could print a trailing symbol (like ␄, though there are probably much better options) after the end of the file. There is the case where it ends up on a new line, in which case you just wouldn't show it, as the input ends at the end of a line.
Though talking about the ␄ character, there could be an option to display those for control characters (it's not like you could confuse those for that character appearing in the input itself, as it's Unicode). |
I'm partial to replacing |
Adds the following options:
--hex-inner-separator none
Removes the inner separator from the hex display--text-inner-separator none
Removes the inner separator from the text display--outer-border none
Removes the outer border (including header, footer and left border, but currently leaves right border in)TODO:
--help
for new optionsCHANGELOG.MD