Lawrence Chou
58198d0700
rewrite 6 snapshot tests as integration test
2018-10-19 21:04:46 +02:00
Lawrence Chou
afc5aacb28
Move tabs_* snapshot tests to integration_tests
2018-10-19 21:04:46 +02:00
sharkdp
30b742e984
--map-syntax takes just one value
2018-10-17 23:27:44 +02:00
sharkdp
671deeef8c
Update help text
2018-10-17 23:17:28 +02:00
sharkdp
a892caeb33
Bump bat version to 0.8
2018-10-17 23:15:59 +02:00
sharkdp
a770cbf25e
Update assets
2018-10-17 23:14:07 +02:00
sharkdp
931c6e9414
Update man page
2018-10-17 23:13:50 +02:00
sharkdp
8dc7e2efa3
Add --config-file option
2018-10-17 23:08:37 +02:00
sharkdp
10965a6122
Implement syntax mapping
...
This adds a `-m`/`--map-syntax` option that allows users to (re)map
certain file extensions or file names to an existing syntax.
For example:
```
bat --map-syntax .config:json
```
The option can be use multiple times. Note that you can easily make
these mappings permanent by using `bat`s new configuration file.
closes #169
2018-10-17 23:08:19 +02:00
sharkdp
e43d97dc15
Small cleanup
2018-10-17 21:12:23 +02:00
sharkdp
2c7087b8de
Add integration tests for pager handling
2018-10-17 21:08:32 +02:00
sharkdp
bb1f5aa841
Add proper handling of empty PAGER variables
2018-10-17 21:08:32 +02:00
sharkdp
2109a7830b
Add error handling for parsing errors
2018-10-17 21:08:32 +02:00
sharkdp
ec27c78a8a
Remove duplicate 'extern crate'
2018-10-17 21:08:32 +02:00
Morten Linderud
67fe833bc8
Add arguments from PAGER/BAT_PAGER
...
Solves #352
Signed-off-by: Morten Linderud <morten@linderud.pw>
2018-10-17 21:08:32 +02:00
sharkdp
e956225b4d
Update syntect to 3.0.1
...
closes #314
2018-10-16 23:06:46 +02:00
sharkdp
314ec881ef
Bump Rust version
2018-10-16 22:09:15 +02:00
sharkdp
25a6a55437
Revert "Fix for older version of Rust"
...
This reverts commit c530fadc44
.
2018-10-16 22:09:15 +02:00
sharkdp
5bff4548be
Add BAT_OPTS environment variable
2018-10-16 22:09:15 +02:00
sharkdp
866b9e16a8
Add error handling
2018-10-16 22:09:15 +02:00
sharkdp
5af176c94f
Move transpose to util module
2018-10-16 22:09:15 +02:00
sharkdp
9e7da05459
Fix for older version of Rust
2018-10-16 22:09:15 +02:00
sharkdp
1ae02c65fb
Fix include
2018-10-16 22:09:15 +02:00
sharkdp
495e7fd3b1
Add --no-config option
2018-10-16 22:09:15 +02:00
sharkdp
b48f0fe389
Fix tests
2018-10-16 22:09:15 +02:00
sharkdp
c19c704a43
Add more tests
2018-10-16 22:09:15 +02:00
sharkdp
693bd5929d
Add possibility for spaces on a single line
2018-10-16 22:09:15 +02:00
sharkdp
8275b0436d
Add simple configuration file
...
This allows users to create simple configuration file
(`~/.config/bat/config` on Linux) that has the following format:
```bash
--flag1
--flag2
--option1=value1
# lines beginning with '#' are ignored
--option2=value2
# empty lines and trailing whitespace are also ignored
--option3=value3
```
2018-10-16 22:09:15 +02:00
sharkdp
278bde5cee
Continue with output after "is directory"-error
2018-10-11 21:54:19 +02:00
Russ Taylor
eee7e5a575
Removes duplicate explanation.
2018-10-11 20:58:44 +02:00
Russ Taylor
ad7b634ee6
Fixes #328 - adds info for light backgrounds.
2018-10-11 20:58:44 +02:00
David Peter
1310f83c8d
Update Docker alias for bat
2018-10-11 20:57:46 +02:00
David Peter
897b9e7030
Add Docker instructions, closes #331
2018-10-11 20:05:17 +02:00
sharkdp
1891e194b5
Add simple integration tests
2018-10-11 07:06:13 +02:00
Taylor
cea05e9f22
be consistent
2018-10-10 22:19:40 -06:00
sharkdp
d2d01b9fe8
Always remove the local cache when creating new assets
2018-10-10 21:49:03 +02:00
sharkdp
2a7851530d
Fix formatting
2018-10-10 20:45:10 +02:00
Taylor
1a6709c2cb
add line highlight
2018-10-09 22:25:33 -06:00
sharkdp
5842d58c01
Updates for syntect 3.0
2018-10-09 22:04:51 +02:00
Tim Sampson
e3c71adba7
syntax: Add robot framework support
2018-10-09 20:27:01 +02:00
Merlin Göttlinger
504f28b3a1
Documented nix availability
2018-10-09 20:07:27 +02:00
Fredrik Fornwall
d977ba9194
Update dependencies
2018-10-08 22:33:09 +02:00
Tim Sampson
9c09799e1f
misc: add exec bit for create.sh
2018-10-08 20:20:05 +02:00
David Peter
d83c93c805
Update README.md
2018-10-07 18:39:52 +02:00
sharkdp
fc8fd1e63f
cargo fmt
2018-10-07 17:49:38 +02:00
sharkdp
404d6a4a81
Update content_inspector version
2018-10-07 17:49:38 +02:00
sharkdp
25d96da4a2
Add support for UTF-16LE and UTF-16BE
2018-10-07 17:49:38 +02:00
sharkdp
e97095b724
Use first-line detection for STDIN
2018-10-07 15:34:37 +02:00
sharkdp
ce96df00b6
Do not display binary files in interactive mode
...
closes #248
2018-10-07 15:34:37 +02:00
sharkdp
f98fc5f06a
Simplify access to first line
2018-10-07 15:34:37 +02:00