Skip to content

Commit 42ffb2f

Browse files
author
termuxhub-bot
committed
metadata: synchronize tool metadata
1 parent 9acc6cd commit 42ffb2f

3 files changed

Lines changed: 133 additions & 129 deletions

File tree

metadata/readme/0142.md

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,6 @@
1919
[<a href="doc/README-ru.md">Русский</a>]
2020
</p>
2121

22-
### Sponsors
23-
24-
A special *thank you* goes to our biggest <a href="doc/sponsors.md">sponsors</a>:<br>
25-
26-
<p>
27-
<a href="https://www.warp.dev/bat">
28-
<img src="doc/sponsors/warp-logo.png" width="200" alt="Warp">
29-
<br>
30-
<strong>Warp, the intelligent terminal</strong>
31-
<br>
32-
<sub>Available on MacOS, Linux, Windows</sub>
33-
</a>
34-
</p>
35-
3622
### Syntax highlighting
3723

3824
`bat` supports syntax highlighting for a large number of programming and markup
@@ -208,12 +194,6 @@ Note that the [Manpage syntax](https://raw.githubusercontent.com/sharkdp/bat/mas
208194

209195
The [`prettybat`](https://github.com/eth-p/bat-extras/blob/master/doc/prettybat.md) script is a wrapper that will format code and print it with `bat`.
210196

211-
#### `Warp`
212-
213-
<a href="https://app.warp.dev/drive/folder/-Bat-Warp-Pack-lxhe7HrEwgwpG17mvrFSz1">
214-
<img src="doc/sponsors/warp-pack-header.png" alt="Warp">
215-
</a>
216-
217197
#### Highlighting `--help` messages
218198

219199
You can use `bat` to colorize help text: `$ cp --help | bat -plhelp`
@@ -526,6 +506,30 @@ and line numbers but no grid and no file header. Set the `BAT_STYLE` environment
526506
variable to make these changes permanent or use `bat`'s
527507
[configuration file](https://raw.githubusercontent.com/sharkdp/bat/master/#configuration-file).
528508

509+
By default, `bat` enables `changes`, `grid`, `header-filename`, `numbers`, and `snip`.
510+
511+
The available pre-defined styles are:
512+
513+
| Style | Description |
514+
|-------|-------------|
515+
| `default` | Enables the recommended style components listed above. |
516+
| `full` | Enables all available components. |
517+
| `auto` | Same as `default`, unless the output is piped. |
518+
| `plain` | Disables all available components. |
519+
520+
The available individual components are:
521+
522+
| Component | Description |
523+
|-----------|-------------|
524+
| `changes` | Show Git modification markers. |
525+
| `header` | Alias for `header-filename`. |
526+
| `header-filename` | Show filenames before the content. |
527+
| `header-filesize` | Show file sizes before the content. |
528+
| `grid` | Vertical/horizontal lines to separate the side bar and header from the content. |
529+
| `rule` | Horizontal lines to delimit files. |
530+
| `numbers` | Show line numbers in the side bar. |
531+
| `snip` | Draw separation lines between distinct line ranges. |
532+
529533
>[!tip]
530534
> If you specify a default style in `bat`'s config file, you can change which components
531535
> are displayed during a single run of `bat` using the `--style` command-line argument.

0 commit comments

Comments
 (0)