Skip to content
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

List of potential styles? #3228

Open
atavistock opened this issue Mar 5, 2025 · 5 comments
Open

List of potential styles? #3228

atavistock opened this issue Mar 5, 2025 · 5 comments
Labels
question Further information is requested

Comments

@atavistock
Copy link

The documentation has many examples of style options, but theres no list. It would be nice if the documentation had a list to know what styles are available to enable or disable.

@atavistock atavistock added the question Further information is requested label Mar 5, 2025
@ZobairQ
Copy link

ZobairQ commented Mar 6, 2025

Did you try bat --list-themes?

@keith-hall
Copy link
Collaborator

Are you referring to this part of the documentation? https://github.com/sharkdp/bat?tab=readme-ov-file#output-style

The man page has more details

bat/assets/manual/bat.1.in

Lines 200 to 209 in 3838766

\fB\-\-style\fR <style\-components>
.IP
Configure which elements (line numbers, file headers, grid borders, Git modifications,
\&..) to display in addition to the file contents. The argument is a comma\-separated list
of components to display (e.g. 'numbers,changes,grid') or a pre\-defined style ('full').
To set a default style, add the '\-\-style=".."' option to the configuration file or
export the BAT_STYLE environment variable (e.g.: export BAT_STYLE=".."). Possible
values: *default*, full, auto, plain, changes, header, header-filename, header-filesize, grid,
rule, numbers, snip.
.HP

@atavistock
Copy link
Author

Neither is addressing the question. Specifically there no where that the styles (e.g. numbers, grid, etc) are actually listed. Apparently you either need to know them or dig through the source code.

@atavistock
Copy link
Author

Did you try bat --list-themes?

Not themes, but styles like plain or numbers.

@atavistock
Copy link
Author

Are you referring to this part of the documentation? https://github.com/sharkdp/bat?tab=readme-ov-file#output-style

The man page has more details

bat/assets/manual/bat.1.in

Lines 200 to 209 in 3838766

\fB--style\fR <style-components>
.IP
Configure which elements (line numbers, file headers, grid borders, Git modifications,
&..) to display in addition to the file contents. The argument is a comma-separated list
of components to display (e.g. 'numbers,changes,grid') or a pre-defined style ('full').
To set a default style, add the '--style=".."' option to the configuration file or
export the BAT_STYLE environment variable (e.g.: export BAT_STYLE=".."). Possible
values: default, full, auto, plain, changes, header, header-filename, header-filesize, grid,
rule, numbers, snip.
.HP

Gotcha, its in the man page. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants