Commit Graph

245 Commits (master)

Author SHA1 Message Date
Stéphane Blondon bb4d1cbd2e refactor: factorize constants by inverting loop and condition order 2 months ago
Stéphane Blondon 23ec433167 display which theme is the default one in basic output 2 months ago
sblondon d5bd4aa93f
display which theme is the default one in colored output (#2838) 2 months ago
Rivera Calzadillas f8c5429a6c Print $TERM with --diagnostic 2 months ago
Rivera Calzadillas f71226adbb Sort env vars printed by --diagnostic 2 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
3 months ago
Lena 4c85483486 Inline `format!` args wherever possible 4 months ago
einfachIrgendwer0815 83b00bc653
Rename `--squeeze` to `--squeeze-blank` 4 months ago
einfachIrgendwer0815 f041ff8c5f
Hide `--squeeze-limit` from short help 4 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>
4 months ago
Ethan P c36ed32816
Add --squeeze/-s option
Co-authored-by: einfachIrgendwer0815 <85333734+einfachIrgendwer0815@users.noreply.github.com>
4 months ago
David Peter 3ffa3648cf
Merge pull request #2853 from einfachIrgendwer0815/document_default_style_components
Document default style components
4 months ago
cyqsimon 2b4339663c
Builtin glob matchers build offload, v2 4 months ago
Oliver Looney c3f2ddf509
Merge branch 'master' into 2783-setting-terminal-title 4 months ago
einfachIrgendwer0815 875046e4cd
Mention which style components are the default 4 months ago
Oliver looney 02077db53e
undid unnecessary api visibility changes 4 months ago
Oliver looney 7ce010d9ed
Using hypens instead of underscores for set-terminal-title command 4 months ago
Oliver looney 7f12989127
added set_terminal_title arg to clap_app.rs to fix ci errors 5 months ago
Oliver looney 60e32cf823
removed set_terminal_title arg from clap_app.rs since other boolean args aren't in clap_app.rs 5 months ago
Oliver looney b33e33fe26
terminal title is only set if user opts in with --set_terminal_title flag 5 months ago
Oliver looney 9239b125b1
added a flag to config for setting terminal title 5 months ago
cyqsimon e4d637a3d8
Reverse precedence of syntax mappings specified on CLI 5 months ago
Oliver looney 3b0ade9cb8
slightly changed set terminal command to match docs & broke print line into multiple variables 6 months ago
Oliver looney 57016f4e04
small refactoring of set terminal title function 6 months ago
Oliver looney 12b74dfb4e
terminal title is only set when pager is being used 6 months ago
cyqsimon f483d2df42
Lazily compile `GlobMatcher`s 6 months ago
cyqsimon cfd622d6e1
Migrate `SyntaxMapping` impl to new system
Most existing builtins are removed but not yet ported, so the test
`user_can_override_builtin_mappings` should fail. It should pass once the old
rules have been ported.
6 months ago
Oliver looney 069318b139
fixed formatting of terminal title 6 months ago
Oliver looney b9b554248d
successfully setting the terminal title to bat's input's names 6 months ago
Lena 28990bc451
fix: display color when NO_COLOR is an empty string (#2767) 7 months ago
J-Kappes e2bf85e749
Make -pp override --paging and vice versa when passed as a later argument. (#2660) 9 months ago
Anomalocaridid b56021ffa9 make LESSOPEN support opt-in 9 months ago
Anomalocaridid e32ad0b048
Add `$LESSOPEN` and `$LESSCLOSE` support (#2444) 10 months ago
David Peter 3abc0c0fc4
Merge pull request #2548 from utkarshgupta137/master
Replace `dirs` crate with `etcetera` crate
10 months ago
Utkarsh Gupta a721cc31f3 Replace `dirs` crate with `etcetera` crate 10 months ago
Peter Hebden d929becefc Fix signatures 10 months ago
einfachIrgendwer0815 26111950b3 Add environment variable `BAT_PAGING` 10 months 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>
10 months 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
David Peter 1a142a82b4
Merge pull request #2513 from nickelc/deps/dirs
Replace `dirs-next` with the original `dirs` crate
1 year 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.
1 year 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.
1 year ago
David Peter 231ad86f04
Merge pull request #2502 from Enselic/clippy-1.68
Fix clippy warnings with Rust 1.68
1 year 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.
1 year ago
Martin Nordholts 40a423905a Fix clippy warnings with Rust 1.68 1 year ago
Miles Liu e39178b101
Fix `bat cache --clear` not clearing the `--target` dir if specified 2 years ago
Aaron Kollasch e773b48135
Fix cache subcommand and add tests
Treat the cache subcommand differently from --no-config:
For --no-config, insert args from selected environment variables
For cache, don't insert args
2 years ago
Aaron Kollasch 4bcea01e9d
Deduplicate lines in matches function 2 years ago
Aaron Kollasch 76aad7c74f
Improve correctness and add more tests 2 years ago