Commit Graph

1941 Commits

Author SHA1 Message Date
72152296c7 Fix accidental printing of files named 'cache'
This also adds two regression tests, so this will hopefully not pop up
again.

closes #557
2019-05-10 17:55:46 -05:00
2b9d25df05 Replace iterator with string starts_with and ends_with 2019-05-10 17:52:35 -05:00
cc8186103b Reformatted with cargo fmt. 2019-05-10 17:52:35 -05:00
0ad09df7ab Improved logic when encountering ANSI in character wrap mode
Fixes #551
2019-05-10 17:52:35 -05:00
7ef0fe091d Cleaned up terminal-width validation even more 2019-05-10 17:50:58 -05:00
89fcbb2b15 Cleaned up terminal-width validation slightly 2019-05-10 17:50:58 -05:00
a7e2bb86cb Add validation for --terminal-width option 2019-05-10 17:50:58 -05:00
1ce0bc8e0d Slightly modified help text 2019-05-10 11:04:46 -05:00
fde00eec98 Add -pp for plain styling and no pager 2019-05-10 11:01:02 -05:00
bb6594e691 Add 3 new themes: ansi-light, ansi-dark, base16
Also, interpret transparent colors (#RRGGBB00) as specifying a terminal
color palette number with RR. The three new themes use this.
2019-05-08 07:35:43 -05:00
e7c5561df7 Update Chocolatey package name to bat 2019-04-25 17:58:15 +02:00
0aabbc03d7 Add Chocolatey package instructions 2019-04-25 17:58:15 +02:00
8a5b59febc Updated manual to include -H, --highlight-line <N> 2019-04-25 17:57:01 +02:00
7afdd44c43 cache/misc: be more cautious with bash 2019-04-25 17:52:21 +02:00
d72549a873 add fish shell syntax definition 2019-04-25 17:52:21 +02:00
1ba8540e5f Updated packaging script to include manual fish shell completions 2019-04-13 10:59:22 +02:00
a6cee4da67 Removed completions file accidentaly left in root dir 2019-04-13 10:59:22 +02:00
cd6850947e Updated fish completions to include parameter completion for available themes, added cache subcommand completions 2019-04-13 10:59:22 +02:00
14bfedeb20 Updated fish completions to include parameter completion for flags: color, italic-text, decorations, paging, wrap 2019-04-13 10:59:22 +02:00
8fe65252f7 WIP: added manual minimal fish shell completions for current flags. Does not include flag sub-options like language lists or subcommands 2019-04-13 10:59:22 +02:00
5e9351445f WIP: added manual minimal fish shell completions for current flags. Does not include flag sub-options like language lists or subcommands 2019-04-13 10:59:22 +02:00
2fdfb8de40 Bump escargot from 0.4.0 to 0.5.0
Bumps [escargot](https://github.com/crate-ci/escargot) from 0.4.0 to 0.5.0.
- [Release notes](https://github.com/crate-ci/escargot/releases)
- [Changelog](https://github.com/crate-ci/escargot/blob/master/CHANGELOG.md)
- [Commits](https://github.com/crate-ci/escargot/compare/v0.4.0...v0.5.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-09 21:48:33 +02:00
f8c759edff Bump clap from 2.32.0 to 2.33.0
Bumps [clap](https://github.com/clap-rs/clap) from 2.32.0 to 2.33.0.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-08 13:00:03 +02:00
e34431f922 Bump assert_cmd from 0.11.0 to 0.11.1
Bumps [assert_cmd](https://github.com/assert-rs/assert_cmd) from 0.11.0 to 0.11.1.
- [Release notes](https://github.com/assert-rs/assert_cmd/releases)
- [Changelog](https://github.com/assert-rs/assert_cmd/blob/master/CHANGELOG.md)
- [Commits](https://github.com/assert-rs/assert_cmd/compare/v0.11.0...v0.11.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-04 21:11:46 +02:00
c96927b550 Update F# syntax 2019-04-04 21:11:19 +02:00
921cc0d1cb Add copyright file on Debian package 2019-03-17 18:59:28 +01:00
dbc49e534a Bump syntect from 3.1.0 to 3.2.0
Bumps [syntect](https://github.com/trishume/syntect) from 3.1.0 to 3.2.0.
- [Release notes](https://github.com/trishume/syntect/releases)
- [Changelog](https://github.com/trishume/syntect/blob/master/CHANGELOG.md)
- [Commits](https://github.com/trishume/syntect/compare/v3.1.0...v3.2.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-03-11 06:37:16 +01:00
7755ed79e0 Delete .DS_Store 2019-03-11 06:35:21 +01:00
50aabf331d Updated minimum version of Rust 2019-03-09 07:43:41 +01:00
f259ff2920 Formatted code 2019-03-09 07:43:41 +01:00
82f14121bd Applied linter fixes 2019-03-09 07:43:41 +01:00
a21ae614e6 Migrated to Rust 2018 2019-03-09 07:43:41 +01:00
b94c94e845 Bump lazy_static from 1.2.0 to 1.3.0
Bumps [lazy_static](https://github.com/rust-lang-nursery/lazy-static.rs) from 1.2.0 to 1.3.0.
- [Release notes](https://github.com/rust-lang-nursery/lazy-static.rs/releases)
- [Commits](https://github.com/rust-lang-nursery/lazy-static.rs/compare/1.2.0...1.3.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-03-08 21:45:42 +01:00
161d107ec3 Bump dirs from 1.0.4 to 1.0.5
Bumps [dirs](https://github.com/soc/dirs-rs) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/soc/dirs-rs/releases)
- [Commits](https://github.com/soc/dirs-rs/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-03-05 22:31:16 +01:00
ecf147fd96 Bump syntect from 3.0.2 to 3.1.0
Bumps [syntect](https://github.com/trishume/syntect) from 3.0.2 to 3.1.0.
- [Release notes](https://github.com/trishume/syntect/releases)
- [Changelog](https://github.com/trishume/syntect/blob/master/CHANGELOG.md)
- [Commits](https://github.com/trishume/syntect/compare/v3.0.2...v3.1.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-25 07:03:17 +01:00
f0771d6532 Do not replace arguments to pager when --pager is used, closes #509 2019-02-18 20:28:44 +01:00
d8f28c177a Make fd link actually link to fd 2019-02-17 09:19:42 +01:00
fbee9df719 Add "git show" section 2019-02-11 22:04:22 +01:00
6e9ca7d6dc Add "xclip" section 2019-02-11 22:01:03 +01:00
a9ec5c063a Add documentation about "tail -f" 2019-02-11 21:54:16 +01:00
8470fd7173 Add "Integration with other tools" section 2019-02-11 21:38:18 +01:00
76b7418e35 Only print contents if file wasn't empty, or EOF wasn't first thing received from stdin. 2019-02-11 20:33:16 +01:00
10c5f79640 Revert "Check result of read_until, and return Error if 0, which indicates EOF was found before delimeter."
This reverts commit 61e888de7f.
2019-02-11 20:33:16 +01:00
9e11d66979 Handle UTF-16 encoding errors with replacement characters 2019-02-10 10:18:07 +01:00
fa3244f7c1 Add test for UTF-16LE encoding 2019-02-10 10:18:07 +01:00
906774e6d3 Integration tests for single-line files 2019-02-10 10:18:07 +01:00
cec9cc073c Add integration tests running bat with empty input files. 2019-02-08 23:30:33 +01:00
a16789a060 Update alternatives.md 2019-02-07 23:52:31 +01:00
e09499b3df Move config-dir and cache-dir from 'bat cache' to 'bat' v0.10.0 2019-02-07 23:27:53 +01:00
cff01d81fa Rename 'bat cache --init' to 'bat cache --build' 2019-02-07 23:27:53 +01:00