-
-
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 headers only when multiple files are passed #1311
Comments
Thank you for the feedback. Originally, I had some plans to add more meta information to the header (like the detected syntax, the Git status of the file, …). If we are going to leave this at the file name only, I agree that it's not very useful for a single file. It would only make sense for consistency. |
We've decided in #1395 that we don't want to add a new command line option for this. There might be another way (by specifying a new |
I wouldn't mind this much if I could define a shell alias that passes Can you think of any other way to support this cleanly? |
I suppose I could be happy enough with two separate aliases, one doing |
Okay, let's try to implement this. We need to discuss the design, but maybe something like this could work:
Note: I haven't completely thought this through. Let's please discuss all implications of this before implementing it. |
I really want this. I feel like the best solution here is not to add new style components, but instead to just add a new flag The question here is whether Or maybe we can be a little more subtle and do a I do think conceptually a |
- Omit line numbers by default - Show headers The header will be visible even when only one file is viewed due to sharkdp/bat#1311. - Move pager settings from alias into bat config file - Remove `bp` alias now that line numbers are hidden by default
Sorry if this has already been asked, but I couldn't find it.
Could it be made possible to configure
bat
to show headers (--style=header
) only when more than one file is passed? I like to keep my--style
quite minimal, and when viewing a single file, the filename is usually just extra noise to me, but with multiple files it's practically a necessity. Thanks!The text was updated successfully, but these errors were encountered: