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
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
sharkdp
1891e194b5
Add simple integration tests
2018-10-11 07:06:13 +02:00
sharkdp
d2d01b9fe8
Always remove the local cache when creating new assets
2018-10-10 21:49:03 +02:00
sharkdp
5842d58c01
Updates for syntect 3.0
2018-10-09 22:04:51 +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
sharkdp
1dbb4ef683
Update minimum Rust version to 1.27
2018-10-07 15:34:37 +02:00
sharkdp
0502a3bd4a
Add first-line detection for all input types
...
closes #205
2018-10-07 15:34:37 +02:00
sharkdp
869cf6368c
Add possibility to get first line
2018-10-07 15:34:37 +02:00
sharkdp
078228deac
Add unit test for InputFileReader
2018-10-07 15:34:37 +02:00
sharkdp
e09d7dabb8
Move snapshot tests into separate module
2018-10-07 15:34:37 +02:00
sharkdp
6d1cc8c2c8
Move read_line functionality to inputfile module
2018-10-07 15:34:37 +02:00
sharkdp
87f021078e
Use dyn Trait for trait objects
2018-10-07 15:34:37 +02:00
sharkdp
d5b0502419
Move get_reader into inputfile module
2018-10-07 15:34:37 +02:00
sharkdp
860f3e9006
Move InputFile to separate module
2018-10-07 15:34:37 +02:00
sharkdp
1be346a038
Add 'plain' version of bat to the benchmarks
2018-10-07 10:57:08 +02:00
sharkdp
f9fd5e4851
Simplify -h help text
2018-10-07 10:43:39 +02:00
sharkdp
da09f3877b
Remove unnecessary scope
2018-10-07 10:09:10 +02:00
sharkdp
e30e1bab2e
Move theme-preview section into own paragraph
2018-10-06 21:12:12 +02:00
sharkdp
e1345cdc2a
Update VimL syntax
2018-10-05 18:44:51 +02:00
sharkdp
a2676ccc55
Workaround for #81
2018-10-04 11:09:41 +02:00
sharkdp
80da0dc619
run cargo fmt
2018-09-26 19:16:03 +02:00
sharkdp
64903bb858
Typo
2018-09-26 19:13:32 +02:00
sharkdp
3456ce1187
Add a small tutorial
2018-09-26 18:08:24 +02:00
sharkdp
886a5b3d24
Document the situation with less and scrolling
...
closes #312
closes #246
2018-09-26 18:03:46 +02:00
sharkdp
238482e5f3
Update syntax-set, fixes #314
2018-09-23 10:30:19 +02:00
sharkdp
6aa626f1c4
Document INI syntax modifications
2018-09-22 11:23:29 +02:00
sharkdp
20b02e72b3
Disable wrapping when --style is plain
...
closes #289
2018-09-18 21:31:56 +02:00
sharkdp
732750c274
Bump version
2018-09-12 22:03:48 +02:00
sharkdp
6b6baa3118
Update dependencies
2018-09-12 22:01:27 +02:00
sharkdp
54c434934e
Bump version, update assets
2018-09-12 22:01:01 +02:00
sharkdp
ad6e0a2581
Update man page
2018-09-12 22:00:28 +02:00
sharkdp
bd619db3ca
Mention BAT_STYLE in README.md
2018-09-12 21:57:54 +02:00
sharkdp
e098eb43a2
Do not show file header for directories
...
This also adds a better error message.
closes #292
2018-09-12 21:53:41 +02:00
sharkdp
63d32bc818
Merge remote-tracking branch 'upstream/master' into bat_style
2018-09-12 21:40:41 +02:00
sharkdp
dccf8d8221
Use a more streamlined version of style-component collection
2018-09-12 21:35:23 +02:00
sharkdp
97129ab9d8
Add PowerShell syntax, closes #306
2018-09-12 20:53:49 +02:00
sharkdp
a05494e9d9
Make tests more robust
2018-09-12 20:32:49 +02:00
sharkdp
84ac92efbb
Fix test for --style=plain
2018-09-12 20:32:33 +02:00
sharkdp
b4c6e412dc
Make generate_snapshots script more robust
2018-09-12 20:28:42 +02:00
sharkdp
3e21d69a92
Re-generate files again
2018-09-12 20:28:30 +02:00
sharkdp
b7690d4bb1
Undo change in sample.modified.rs
2018-09-12 20:28:21 +02:00
sharkdp
8b4abb03db
Run 'cargo fmt'
2018-09-08 09:52:21 +02:00
sharkdp
ba00caf9c3
Add Swift syntax
2018-09-05 21:56:49 +02:00
sharkdp
ac418ba21c
Add PureScript syntax
2018-09-05 21:50:16 +02:00
sharkdp
acde83af31
Add note about 'lesspipe', closes #242
2018-09-05 21:44:53 +02:00
sharkdp
021a68eb21
Add F# syntax, closes #284
2018-09-05 21:38:35 +02:00
sharkdp
f88eba6476
Add section concerning missing zlib-devel
...
closes #229
2018-09-05 21:13:43 +02:00
sharkdp
1d9e7ac4c2
Support "(/usr)/bin/less" as PAGER too
...
closes #271
2018-09-05 21:10:11 +02:00
sharkdp
d2b4766f92
Small README update
2018-09-04 08:25:24 +02:00
sharkdp
7b803a50af
Ignore enable_ansi_support errors
...
- Call `enable_ansi_support` only once.
- Ignore errors that appear when trying to enable ANSI support. This
will hopefully fix #252 and #264
2018-09-03 22:15:38 +02:00
sharkdp
67ec5fe2b7
Add OneHalf themes, closes #256
2018-09-03 22:12:41 +02:00
sharkdp
3447ed4def
Add CSV syntax, closes #254
2018-09-03 21:49:26 +02:00
sharkdp
ba4d5a2e7d
Bump version number
2018-09-01 00:30:43 +02:00
sharkdp
026273a05c
Enable ANSI support on Windows
2018-09-01 00:23:15 +02:00
sharkdp
8903b64830
Fix for Rust 1.26
2018-08-31 23:57:27 +02:00
sharkdp
194155f062
Fix relative-path computation for Windows
2018-08-31 23:57:27 +02:00
sharkdp
a6ff3b900d
Fix terminal width to 80 characters in tests
2018-08-31 23:57:27 +02:00
sharkdp
8a52bcf92d
Add hidden --terminal-width option
2018-08-31 23:57:27 +02:00
sharkdp
0b1535f63b
Split snapshot tests into individual tests
2018-08-31 23:57:27 +02:00
sharkdp
0a5b3eaf3e
Re-enable tests on windows
2018-08-31 23:57:27 +02:00
sharkdp
11294249f8
Add new key for AppVeyor
2018-08-31 23:57:27 +02:00
sharkdp
e3c990f11e
Respect color settings for list-themes and list-languages
2018-08-31 21:57:18 +02:00
sharkdp
90c7d0c365
Use stdout locks
2018-08-31 21:48:26 +02:00
sharkdp
acdea97e71
Add --plain
2018-08-28 23:37:49 +02:00
sharkdp
839e4ee611
Bump version
2018-08-28 23:21:35 +02:00
sharkdp
c7afcdebf8
Move theme_preview file to constant
2018-08-28 22:16:42 +02:00
sharkdp
08e6db1581
Add Troubleshooting section
...
see #220
2018-08-28 22:08:34 +02:00
sharkdp
4d08ecd828
Fix headline levels
2018-08-28 21:04:41 +02:00
sharkdp
28e1d0e613
Add development section to README
2018-08-28 21:03:03 +02:00
sharkdp
d11839ad03
Update install instructions
2018-08-28 20:55:15 +02:00