Commit Graph

947 Commits (eca6b8a3768ec3931a41330c42b138107b1786b5)

Author SHA1 Message Date
Keith Hall b01ed8d773
Merge branch 'master' into fix/3073_list_themes 2 weeks ago
einfachIrgendwer0815 bc69ffb0f0
Map `*.mkd` files to `Markdown` syntax (#3061) 3 weeks ago
Mikael Vaaltola ed7789d9b7 Associate GeoJSON `.geojson` files with `json` syntax (fixes #3083) 4 weeks ago
einfachIrgendwer0815 0603f0b844
Don't output default theme info to piped stdout 2 months ago
Ethan P. aa3ec109b7
First StyleComponentList should remove from 'auto' style.
This happens when there are no `--style` arguments other than the one
passed in as a command line argument.

Prior to this change, removing a style component (e.g. `--style=-numbers`)
would remove the component from an empty style component set, resulting
in no styles at all. That behaviour was less intuitive than the new
behaviour, which starts out with the default components and
removes the line numbers.
3 months ago
Ethan P. 93b25d75a0
Join env var options with "=" instead of " "
Joining them with a space was causing certain styles (e.g. `-grid`) to
be misinterpreted as a separate option.
3 months ago
Ethan P. 6e91ba83b7
Update clap/docs for merging `--style` arguments 3 months ago
Ethan P. b74c125c43
Support merging `--style` arguments
The `overrides_with` clap builder option was removed
because it interfered with the matcher's ability to
retain all occurrences of `--style`.

The behavior it covered is expressed within the new
`forced_style_components` function.
3 months ago
Michael Vorburger 23fd200482 Associate JSON-LD `.jsonld` files with `json` syntax (fixes #3036)
Use PR instead of Issue # number in CHANGELOG.

Clean up (unify) CHANGELOG.
3 months ago
Ethan P. 3f22311ec8
Add ANSI stripping to bat-as-a-library 4 months ago
Ethan P. 9e8176b1c6
Add `--strip-ansi=auto` option
When using `auto`, escape sequences will be stripped unless printing
plain text.
4 months ago
Ethan P. 70ff93d238
Add `--strip-ansi` option 4 months ago
Ethan P. 9c76b72825
Update expand_tabs to use bat's ANSI iterator 4 months ago
Ethan P. b4fe182960
Make EscapeSequenceOffsetsIterator pub, add fns to get indices 4 months ago
Stéphane Blondon bb4d1cbd2e refactor: factorize constants by inverting loop and condition order 6 months ago
Stéphane Blondon 23ec433167 display which theme is the default one in basic output 6 months ago
sblondon d5bd4aa93f
display which theme is the default one in colored output (#2838) 6 months ago
Rivera Calzadillas f8c5429a6c Print $TERM with --diagnostic 6 months ago
Rivera Calzadillas f71226adbb Sort env vars printed by --diagnostic 6 months ago
Hamir Mahal 07c26adc35 style: simplify equality check 7 months ago
David Peter f29f9387b5
Merge pull request #2868 from cyqsimon/builtin-offload-v2
Faster startup by offloading glob matcher building to a worker thread
7 months ago
Hamir Mahal c290bfff1e refactor: remove reference that is unnecessary 7 months ago
cyqsimon 46a2c004a2
Add syntax mapping for Wireguard config 8 months ago
cyqsimon 26ac179548
Add note on thread synchronization 8 months ago
Lena 4c85483486 Inline `format!` args wherever possible 8 months ago
einfachIrgendwer0815 83b00bc653
Rename `--squeeze` to `--squeeze-blank` 8 months ago
einfachIrgendwer0815 f041ff8c5f
Hide `--squeeze-limit` from short help 8 months ago
einfachIrgendwer0815 6c2ce63101
Add squeeze functionality to `SimplePrinter` 8 months ago
Ethan P 0e4e10edb6
Add --squeeze-limit to specify max number of consecutive empty lines
Co-authored-by: einfachIrgendwer0815 <85333734+einfachIrgendwer0815@users.noreply.github.com>
8 months ago
Ethan P 0c7e5299bf
Add squeeze_empty_lines to PrettyPrinter 8 months ago
Ethan P c36ed32816
Add --squeeze/-s option
Co-authored-by: einfachIrgendwer0815 <85333734+einfachIrgendwer0815@users.noreply.github.com>
8 months ago
David Peter 1ae9e843ed
Merge branch 'master' into skip-highlighting-when-no-color 8 months ago
David Peter 4549f83689
Merge branch 'master' into quadlet 8 months ago
David Peter 3ffa3648cf
Merge pull request #2853 from einfachIrgendwer0815/document_default_style_components
Document default style components
8 months ago
David Peter a6f01af8de
Merge branch 'master' into containers-conf 8 months ago
David Peter b718889ba2
Merge branch 'master' into master 8 months ago
David Peter 708c74f6af
Merge pull request #2795 from mxaddict/master
Added JSONC and aws credentials to the syntax mappings
8 months ago
David Peter 74d666f5c0
Merge branch 'master' into skip-highlighting-when-no-color 8 months ago
David Peter 7604fe5567
Merge pull request #2807 from Oliver-Looney/2783-setting-terminal-title
2783 setting terminal title
8 months ago
David Peter 0080b043c4
Merge branch 'master' into master 8 months ago
cyqsimon 2b4339663c
Builtin glob matchers build offload, v2 8 months ago
cyqsimon 6a6b02117b
Apply clippy fixes (#2864)
* Apply clippy fixes

* Write changelog
8 months ago
cyqsimon 92915e22e7
Map containers `.conf` files to TOML syntax 8 months ago
cyqsimon 152d69fe98
Add syntax mapping for podman quadlets 8 months ago
Oliver Looney 1f628203e5
Merge branch 'master' into 2783-setting-terminal-title 8 months ago
David Peter bc1ca1a346
Merge branch 'master' into fix-2185 8 months ago
Ethan P. 25b5a41189
Skip syntax parsing when color output disabled 8 months ago
Ethan P. c94cf4e14e
Split syntax highlighting from print_line into fn
This simplifies the `print_line` function a little bit while also
providing a way for syntax highlighting to be skipped when it's
not being used (i.e. `--color=never`).
8 months ago
Ethan P. 84d80eebd0
Test for correct categorization of SGR sequences
This adds a regression test for the fix in the previous commit.
8 months ago
Ethan P. 915dd9fbf8
Fix incorrect categorization of SGR sequences
Specifically, prevent other attributes from leaking into the
bold/dim/italic/underline attributes, and ensure that bright backgrounds
are put into the background attribute instead of the foreground
attribute.
8 months ago