-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
feature request: argument for changing specific theme color #339
Comments
Thank you for the feedback!
Sounds like a good idea to me. I think it will be difficult to support this for every possible color that can be defined in a Sublime Syntax file (these would have to be looked up first), but we could start with the basic colors like As for the command-line option syntax, I'd suggest |
Thank you for your quick response. I also noticed that you're working on the configuration file now, so I suggest that you can add a command like |
A related problem: The "reverse" text from the bat theme obscures the highlighting of my search terms within my pager. A demonstration: $ (BAT_PAGER=/usr/bin/less; bat --list-themes --color always |bat --paging always) Then, hit I would like a flag and/or environment variable that would override the settings so that any coloring that the theme applies to the background would instead be applied to the foreground. Then the only reverse text in the output would be my search terms. Something along the lines of:
|
@jetzerb Can you please make sure that:
|
@sharkdp: My apologies. I had been running v0.6.0. I've upgraded to 0.9.0 and now none of the text is showing up with a colored background. I'm not seeing any italics either though. and if I call bat with Oh, looks like this has something to do with tmux...If I detach from tmux, I see italic text instead of reverse text. Google leads me here. I'll have to investigate that... |
That's exactly the reason why we have decided to disable italics by default. |
For anyone else who might have this problem... I don't see italics! Or italics and reverse are the wrong way round!GNU screen does not support italics and the "screen" terminal description uses the italics escape sequence incorrectly. As of tmux 2.1, if default-terminal is set to "screen" or matches "screen-*", tmux will behave like screen and italics will be disabled. To enable italics, make sure you are using the tmux terminal description:
After setting the default terminal to "tmux", I can see colors, bold, italic, and reverse text. I'm using Oh My Tmux!. I'll see if the author has any thoughts on changing the default terminal from "screen-256color". |
@jetzerb Thank you very much for quoting this here. We should add this to the https://github.com/sharkdp/bat#troubleshooting section in the README. |
I'm using regular gnu screen and as with tmux, there's some weird issues with underlining. This is gnu screen (no fixes), gnu screen (underline fixes) and regular terminal (no gnu screen) side by side: I fixed my gnu screen underline issues using details from here: https://superuser.com/a/189503/92621 and added
to my |
@jaygooby Can you please open a new ticket for this? The whole discussion never really belonged here. This might be related to |
I too would like to be able to customize the |
Same here. I'm using theme "Visual Studio Dark+". And it practically doesn't highlight anything in windows terminal - the contrast is not noticeable. |
Out of the box, using the "Solarized (dark)" theme, the highlight color is quite aggressive and makes the text difficult to read. It does not matter if I set I'd like to understand where this color is coming from exactly. How can I patch it myself? I'm pretty sure it's neither of my terminals and tmux also does not affect it. Can I have some pointers please? Thank you! |
I guess copy the |
Ah, thanks @keith-hall, only now realised the themes are in git submodules 😅 Looks like this value ( |
Hello, thank you for your awesome works on
bat
! But I think there is a feature that still missing.Suppose that I just want to change the line number color, I have to make a copy of the theme file and change its
gutterForeground
value. And the theme file is verbose, normally 400+ lines.So it will be great the
bat
can provide an argument to overwirte the theme color e.g.bat --theme Tomorrow-Night --colors gutterForeground=f5f5f5 README.md
.The text was updated successfully, but these errors were encountered: