cyqsimon
d24501ab5e
`include!` generated mappings in source
9 months ago
cyqsimon
52f94b4623
Clarify syntax selection algorithm behaviour
9 months ago
cyqsimon
37fd050100
Describe filename ordering more accurately
9 months ago
cyqsimon
83286975ff
Add ordering prefix to git-config example
9 months ago
cyqsimon
f705fcb984
Add global git-config example
9 months ago
cyqsimon
9ca1f20f43
Add specification draft
9 months ago
Lena
28990bc451
fix: display color when NO_COLOR is an empty string ( #2767 )
10 months ago
einfachIrgendwer0815
3d87b25b19
Add unicode/caret replacements for all control characters ( #2712 )
11 months ago
rhysd
e5c81ed41e
Replace our own macros to write buffers with standard macros
12 months ago
skoriop
0937d575fd
fix: rewrite overflow test using `usize::MAX`
12 months ago
skoriop
d89df18de2
test: add test for overflow in `LineRange::from`
12 months ago
skoriop
9fcc57e496
fix: integer overflow in `LineRange::parse_range`
12 months ago
Linda_pp
9f795dd947
Associate `*.sarif` files with `json` syntax ( #2695 )
...
* Associate `*.sarif` files with `json` syntax
* Update changelog for #2695
12 months ago
Nicolas AMBRY
5a240f36b9
Case insensitive `--map-syntax` ( #2650 )
...
Co-authored-by: Nicolas AMBRY <nicolas.ambry@atos.net>
1 year ago
J-Kappes
e2bf85e749
Make -pp override --paging and vice versa when passed as a later argument. ( #2660 )
1 year ago
Anomalocaridid
433176ab54
require LESSOPEN to have exactly one %s
1 year ago
Anomalocaridid
b56021ffa9
make LESSOPEN support opt-in
1 year ago
Anomalocaridid
ac2953c070
pass --no-lessopen to less by default
1 year ago
Anomalocaridid
e32ad0b048
Add `$LESSOPEN` and `$LESSCLOSE` support ( #2444 )
1 year ago
David Peter
3abc0c0fc4
Merge pull request #2548 from utkarshgupta137/master
...
Replace `dirs` crate with `etcetera` crate
1 year ago
David Peter
b06f13f0c5
Merge pull request #2618 from Piturnah/feat/write-to-buffer
...
feat: Optionally write to a buffer instead of stdout
1 year ago
Utkarsh Gupta
a721cc31f3
Replace `dirs` crate with `etcetera` crate
1 year ago
David Peter
1e52785d35
Merge pull request #2626 from rhysd/encoding_rs
...
Replace unmaintained `encoding` dependency with `encoding_rs`
1 year ago
Orion Yeung
9ba3b6ed13
No duplicate keys test, fixes #2643 ( #2647 )
...
* moved unit tests to conditional compile
made module `tests` and conditionally compiled
* added test to check for duplicate keys in builtin
checks all pairs in GlobMatcher::mappings via `GlobMatcher::glob`s `Eq`
panics at first match
```rs
SyntaxMapping {
mappings: Vec<(
GlobMatcher {
glob: Glob, ...,
}, ...,
}, ...,
}
```
* output more info with test failure
* dont duplicatively add git config path
* use guard in match for adding builtin git config syntax mapping
---------
Co-authored-by: Orion Yeung <11580988+orionyeung001@users.noreply.github.com>
1 year ago
Peter Hebden
72e1a40bab
Remove leftover unwrap
1 year ago
Peter Hebden
b2c28cdddb
Clippy lints
1 year ago
Peter Hebden
906e774372
Handle todos
1 year ago
Peter Hebden
d929becefc
Fix signatures
1 year ago
Peter Hebden
103a2f0d9b
Add `OutputHandle` enum to use instead of `&mut dyn io::Write`
1 year ago
rhysd
d33b2e158e
Replace unmaintained `encoding` with `encoding_rs`
1 year ago
einfachIrgendwer0815
26111950b3
Add environment variable `BAT_PAGING`
1 year ago
Orion Yeung
f21d3502e1
Add `*.ron` syntax mapping
...
Add a mapping to use `Rust` for rusty object notation, identified by `.ron` extension. See [#2427 ](https://github.com/sharkdp/bat/issues/2427 ).
1 year ago
WinterCore
d580445aef
fix: Add syntax mapping `jsonl` => `json`
1 year ago
mataha
82664e3c82
Bump MSRV to 1.70.0
...
The intention is to take advantage of `std::io::IsTerminal` that landed
in 1.70.0, both in `bat` and its dependencies (`clap`, `grep-cli`).
This will fix #2570 as well - `grep-cli` 0.1.9 has a patch for that.
Signed-off-by: mataha <mataha@users.noreply.github.com>
1 year ago
Ville Skyttä
1893405cbf
Add .dpkg-new and .dpkg-tmp to ignored suffixes
...
Refs https://www.debian.org/doc/manuals/debian-handbook/sect.package-meta-information.en.html#sect.conffiles
1 year ago
John Higgins
b1fbcc8a6e
fix for issue #2633
1 year ago
einfachIrgendwer0815
c46c53320b
Add `Containerfile` syntax mapping
1 year ago
cyqsimon
f8c700027e
Add `os-release` syntax mapping
1 year ago
Nigecat
149dec6953
Fix paging not happening when stdout is interactive but stdin is not
1 year ago
Constantin Nickel
57cc0d8435
Use the `is-terminal` crate instead of `atty`
...
The crate is already used by `clap` and a similar trait is about to be
stabilized in `std`.
1 year ago
Collin Styles
7929179a74
Make `PrettyPrinter::header` an alias for `header_filename`
...
Fixes #2378
2 years ago
David Peter
1a142a82b4
Merge pull request #2513 from nickelc/deps/dirs
...
Replace `dirs-next` with the original `dirs` crate
2 years ago
Constantin Nickel
0e148e35dd
Replace `dirs-next` with the original `dirs` crate
...
The `dirs` crate was forked as `dirs-next` after the original repos were archived.
The fork hasn't released a new version since October 2020, while the original
has been taken off the shelf and has seen updates since then.
2 years ago
Constantin Nickel
da3aa4e2fd
Use `nu-ansi-term` instead of `ansi_term`
...
The `nu-ansi-term` crate is a fork of `ansi_term` which is maintained by
the Nushell project.
2 years ago
David Peter
231ad86f04
Merge pull request #2502 from Enselic/clippy-1.68
...
Fix clippy warnings with Rust 1.68
2 years ago
einfachIrgendwer0815
8f99a78cf1
Print non-printable characters using caret notation ( #2443 )
...
When the new flag is set, non-printable characters are printed using caret notation.
2 years ago
Martin Nordholts
40a423905a
Fix clippy warnings with Rust 1.68
2 years ago
Martin Nordholts
ec6e9c29ac
Bump MSRV to 1.62 ( #2496 )
...
* Bump MSRV to 1.62
Mainly to be able to derive default enum variants.
* CHANGELOG.md: Update
2 years ago
BlackHoleFox
1004018941
Directly read preferences instead of using the defaults CLI
2 years ago
rhysd
4cc2a489d0
Remove unnecessary heap allocations in `PrettyPrinter::print` for style components
2 years ago