sharkdp
e79c5516bf
Bump version, update assets
2018-11-11 12:55:38 +01:00
sharkdp
4776c2a575
Update man page
2018-11-11 12:31:28 +01:00
sharkdp
f98a96c1ed
Update help text
2018-11-11 12:26:39 +01:00
sharkdp
8a3446d219
Update dependencies
2018-11-11 12:17:58 +01:00
sharkdp
b68c038db8
Update link to new issue
2018-11-11 11:08:08 +01:00
sharkdp
7cac07d845
issue #383 : Handle cases like PAGER=/usr/bin/bat
2018-11-06 19:53:32 +01:00
sharkdp
1f9befbcd1
Update SHA1 in TOML submodule
2018-11-05 19:37:23 +01:00
sharkdp
a5c779c518
Update path to TOML syntax remote
2018-11-05 19:23:44 +01:00
sharkdp
c6a526f99c
Run 'cargo run' only once
2018-11-04 12:24:56 +01:00
sharkdp
278d841408
Move '--paging' arg to config file.
2018-11-04 11:19:49 +01:00
sharkdp
5f576f1ecf
Remove all relevant environment variables during testing
2018-11-04 11:19:49 +01:00
sharkdp
48c6ea6b25
Simplify integration test setup
2018-11-04 11:19:49 +01:00
sharkdp
e81f9b23e6
Fix --show-all for UTF-16 encoding
2018-11-01 22:00:47 +01:00
sharkdp
50dc4a79b0
Display line-feed as instead of
2018-11-01 22:00:47 +01:00
sharkdp
8fa8f44706
Use ↹ character if tab-width == 1.
2018-11-01 22:00:47 +01:00
sharkdp
ecd862d9ff
Feature: Highlight non-printable characters
...
Adds a new `-A`/`--show-all` option (in analogy to GNU Linux `cat`s option) that
highlights non-printable characters like space, tab or newline.
This works in two steps:
- **Preprocessing**: replace space by `•`, replace tab by `├──┤`, replace
newline by ``, etc.
- **Highlighting**: Use a newly written Sublime syntax to highlight
these special symbols.
Note: This feature is not technically a drop-in replacement for GNU `cat`s
`--show-all` but it has the same purpose.
2018-11-01 22:00:47 +01:00
sharkdp
cbed338c3a
Remove generation code for tabs_ tests
2018-11-01 15:30:58 +01:00
sharkdp
4492d99556
Change default tab width to 4
2018-11-01 15:30:58 +01:00
sharkdp
d96ee2261f
Remove tab-related text
2018-11-01 15:30:58 +01:00
sharkdp
dda27b253b
Allow offset values in --terminal-width
...
Allows the `width` argument to `--terminal-width` to be an offset
instead of an absolute number. Examples:
--terminal-width=80 # Set output width to 80 characters
--terminal-width=-2 # Set output width to actual_width - 2
closes #376
2018-10-31 22:21:22 +01:00
sharkdp
78f26d0caf
Temporarily disable shipping of shell completions
...
closes #372
2018-10-31 22:03:05 +01:00
sharkdp
a25ee0e6fd
Add sublime-snazzy theme
2018-10-20 11:32:25 +02:00
sharkdp
496e0bc046
Allow for multiple line ranges
...
See #23
2018-10-20 10:44:13 +02:00
sharkdp
7082fd09f0
Modify TravisCI caching policy
2018-10-19 23:06:25 +02:00
sharkdp
f7d9f49503
Remove leftovers from tab-tests
2018-10-19 21:57:35 +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
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