sharkdp
260814c377
Bump version to 0.11
2019-05-15 22:07:35 +02:00
sharkdp
3675a82a1b
Update dependencies
2019-05-15 22:06:28 +02:00
sharkdp
5b2b594919
Revert "Run 'cargo fmt'" (outdated rustfmt)
...
This reverts commit dd40f7545d .
2019-05-15 08:07:08 +02:00
sharkdp
9d53ce6be6
Fix warning
2019-05-14 23:42:23 +02:00
sharkdp
51e05499a9
Update dependencies
2019-05-14 23:40:21 +02:00
sharkdp
dd40f7545d
Run 'cargo fmt'
2019-05-14 23:40:07 +02:00
sharkdp
c709bf2103
Print a warning message instead of just '<BINARY>'
2019-05-14 23:35:22 +02:00
sharkdp
0a1e08da96
Extend help text for --terminal-width and --wrap, closes #535
2019-05-14 23:24:13 +02:00
sharkdp
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
sharkdp
1ce0bc8e0d
Slightly modified help text
2019-05-10 11:04:46 -05:00
sharkdp
f0771d6532
Do not replace arguments to pager when --pager is used, closes #509
2019-02-18 20:28:44 +01:00
sharkdp
9e11d66979
Handle UTF-16 encoding errors with replacement characters
2019-02-10 10:18:07 +01:00
sharkdp
fa3244f7c1
Add test for UTF-16LE encoding
2019-02-10 10:18:07 +01:00
sharkdp
906774e6d3
Integration tests for single-line files
2019-02-10 10:18:07 +01:00
sharkdp
e09499b3df
Move config-dir and cache-dir from 'bat cache' to 'bat'
2019-02-07 23:27:53 +01:00
sharkdp
cff01d81fa
Rename 'bat cache --init' to 'bat cache --build'
2019-02-07 23:27:53 +01:00
sharkdp
31608c9a03
Update syntaxes
2019-02-07 23:01:06 +01:00
sharkdp
357ce84c56
Bump version to 0.10
2019-02-07 23:00:40 +01:00
sharkdp
3a5c52641b
Update assets/syntaxes/Packages
2019-02-07 22:53:18 +01:00
sharkdp
6e8fca5bb2
Replace less command line arguments only for PAGER
2019-02-07 22:37:33 +01:00
sharkdp
4df22e617f
Update documentation
2019-02-07 22:19:32 +01:00
sharkdp
6473e8c1be
Remove import
2019-02-07 22:19:32 +01:00
sharkdp
972a764a74
Simplify Optional handling
2019-02-07 22:19:32 +01:00
sharkdp
54143d1403
Add --cache-dir option
2019-02-07 22:19:32 +01:00
sharkdp
6523bbf62f
Replace 'is_absolute_path' with map and filter
2019-02-07 22:19:32 +01:00
sharkdp
a500629359
Completely disable generation of shell completion files
2019-01-26 19:11:54 +01:00
sharkdp
c483e49b92
Consistent naming for submodules
2019-01-20 10:22:35 +01:00
sharkdp
bd68684537
Fix the number of values to one
2018-12-16 22:35:22 +01:00
sharkdp
c2847f6a9f
Short options for line-range and highlight-line
2018-12-16 22:17:39 +01:00
sharkdp
cf7ed042c1
Colorize the whole line
2018-12-16 21:53:15 +01:00
sharkdp
6b92814ea0
Allow for multiple highlighted lines
2018-12-16 21:00:18 +01:00
sharkdp
a236a9b195
Merge branch 'master' of https://github.com/tskinn/bat into tskinn-master
2018-12-16 20:43:36 +01:00
sharkdp
b68c5d8576
Bump minimum required Rust version to 1.30
2018-12-14 23:34:13 +01:00
sharkdp
fee57d71d9
Print ANSI-reset code before newline
...
fixes #379
2018-12-14 23:34:13 +01:00
sharkdp
5d3205acc0
Add x86_64 Assembly manually
2018-12-14 23:07:11 +01:00
sharkdp
4e6816abd6
Remove problematic 'Assembly (x86_64)' submodule
2018-12-14 23:07:11 +01:00
sharkdp
397def1320
Omit launching of pager if NO file exists
...
closes #387
2018-12-14 22:53:31 +01:00
sharkdp
d2d29180a7
Add ARM assembly
2018-12-14 22:52:57 +01:00
sharkdp
2f263c9fbf
Add x86_64 assembly
2018-12-14 22:46:50 +01:00
sharkdp
98ee5f7400
Add vimpager to alternatives, closes #429
2018-12-07 20:28:47 +01:00
sharkdp
a3182e68e4
Update .gitattributes
2018-11-12 21:49:19 +01:00
sharkdp
0691b18231
Add assets/.gitattributes
2018-11-11 14:50:59 +01:00
sharkdp
c711cd1b2e
Update .gitattributes
2018-11-11 14:50:05 +01:00
sharkdp
14e6b41a5f
Add .gitattributes
2018-11-11 14:49:24 +01:00
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
2a7851530d
Fix formatting
2018-10-10 20:45:10 +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