-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Show file is binary also in -p mode #530
Comments
Thank you for the feedback. The But your requests sounds sensible to me. I think I'm okay with printing |
That would be nice addition. |
This seems odd to me. If you are using |
bat can print binary but only when piped from bat But i can see a use case of binary data, for example: Showing it a binary file also might confuse someone with thinking is a file with the contents of |
Use just cat then ¯\_(ツ)_/¯ So, SHOULD |
I would prefer showing I think just showing I'm interested in @sharkdp opinion about this. |
I would like to implement this one, actually. There are two different views on
From my point of view, if we want Printing of the contents in -p mode is not an option I think, 'cause -p means "turn off decorations" not "print all which you don't print in normal mode" |
I think that the best way to fix this is to replace the contents of binary files with This actually raises another question, why |
Hm, maybe this should be addressed in another ticket. |
This is included in v0.11.0. |
I currently use bat as cat replacement but because bat uses line numbers and file notations i added the
-p
flag in my fish config:This works great but i noticed there is no output when i bat over binary files.
yes i know that this is totally useless but this confuses me sometimes with thinking that it's just an empty text file.
It would be nice to get some feedback like cat where it shows a corrupted output or let it say something like
<BINARY>
the same as without-p
The text was updated successfully, but these errors were encountered: