sharkdp
6ceba56288
Add 'mkdir -p …' to Ubuntu instructions, see #982
2020-05-12 18:35:35 +02:00
sharkdp
2596bfe7a7
Bump version to v0.15.1
2020-05-11 20:30:45 +02:00
sharkdp
406bffa8c8
Update syntaxes and themes
2020-05-11 20:29:49 +02:00
sharkdp
48441b99ef
Patch Markdown syntax
...
closes #963
see #977
2020-05-11 20:22:50 +02:00
sharkdp
ce4717144a
Update CHANGELOG
2020-05-11 19:33:13 +02:00
sharkdp
0792195156
Properly add QML submodule
2020-05-01 10:24:19 +02:00
sharkdp
81af375289
Use console 0.11.2, see #955
2020-04-28 21:18:48 +02:00
sharkdp
d707eab95c
Revert "Use console 0.11.1, see #955 "
...
This reverts commit d64c55ef11 .
The build on Windows failed due to two broken tests:
line_numbers
tabs_numbers
2020-04-28 09:22:19 +02:00
sharkdp
d64c55ef11
Use console 0.11.1, see #955
2020-04-28 00:00:59 +02:00
sharkdp
2b1d53fb27
Add '--locked' flag to all 'cargo install' commands
2020-04-27 23:43:18 +02:00
sharkdp
bf696f58c8
Pin version of console to 0.10.0
2020-04-27 23:37:06 +02:00
sharkdp
296bad8ffd
Update CHANGELOG
2020-04-27 22:01:41 +02:00
sharkdp
94310af30c
Add Fortran syntax, closes #957
2020-04-27 21:45:36 +02:00
sharkdp
38c096bf79
Update CHANGELOG
2020-04-25 15:19:42 +02:00
sharkdp
696d1b3ed3
Update CHANGELOG
2020-04-25 13:17:07 +02:00
sharkdp
17d98724a5
Bump version to v0.15.0
2020-04-25 13:09:24 +02:00
sharkdp
7d7ee1b594
Update cached verison of themes
2020-04-25 13:08:30 +02:00
sharkdp
682b4209f2
Update solarized themes to braver/Solarized, closes #941
2020-04-25 13:08:30 +02:00
sharkdp
41ddcbd240
Remove old Sublime themes
2020-04-25 13:08:30 +02:00
sharkdp
48a7ce3bf2
Write error messages to pager, if attached
...
closes #946
2020-04-25 13:08:00 +02:00
sharkdp
5fe8a8342b
Add annotations again
2020-04-24 16:51:11 +02:00
sharkdp
989109145a
Add '-d' for '--diff'
2020-04-24 16:12:38 +02:00
sharkdp
23afc8e90c
Skip non-file inputs when using --diff
2020-04-24 16:12:38 +02:00
sharkdp
8e18786556
Run 'cargo fmt'
2020-04-24 16:11:05 +02:00
sharkdp
81488adf8b
Use unreachable!(…)
2020-04-24 16:11:05 +02:00
sharkdp
abeac8b12e
Bump min. required Rust version to 1.40
2020-04-24 09:57:57 +02:00
sharkdp
82e7786e74
Implementation of 'bat --diff'
...
This adds a new `--diff` option that can be used to only show lines
close to Git changes (added/removed/modified lines). The amount of
additional context can be controlled with `--diff-context=N`.
closes #23
2020-04-24 09:57:57 +02:00
sharkdp
0064321323
cargo fmt
2020-04-23 00:56:35 +02:00
sharkdp
9e622a1a5f
Update version in README
2020-04-23 00:56:27 +02:00
sharkdp
59ca933aee
Update dependencies
2020-04-22 23:59:35 +02:00
sharkdp
793af6b911
Add a syntax mapping for bats own config file
2020-04-22 23:58:41 +02:00
sharkdp
c8abe3f235
Update CHANGELOG
2020-04-22 23:56:20 +02:00
sharkdp
5d71056209
Fix import in app
2020-04-22 23:55:28 +02:00
sharkdp
eb7d4d002a
Update documentation
2020-04-22 23:55:28 +02:00
sharkdp
62b32bd848
Make module private
2020-04-22 23:55:28 +02:00
sharkdp
8961f7aef8
Move PagingMode to separate module
2020-04-22 23:55:28 +02:00
sharkdp
17f3a3b95d
Simpler highlight method
2020-04-22 23:55:28 +02:00
sharkdp
261a7ea154
Add *_with_name methods
2020-04-22 23:55:28 +02:00
sharkdp
53a973e9dd
Add syntaxes and themes method
2020-04-22 23:55:28 +02:00
sharkdp
cba9df746e
Add paging to advanced example
2020-04-22 23:55:28 +02:00
sharkdp
12eee0c590
Fix warnings for --no-default-features mode
2020-04-22 23:55:28 +02:00
sharkdp
b76f5e72d4
Use unwrap
2020-04-22 23:55:28 +02:00
sharkdp
702cb198da
Rename error module
2020-04-22 23:55:28 +02:00
sharkdp
5f826419d1
Add YAML example
2020-04-22 23:55:28 +02:00
sharkdp
13f671b499
Update examples
2020-04-22 23:55:28 +02:00
sharkdp
49f4322054
Fix example
2020-04-22 23:55:28 +02:00
sharkdp
0c9e044e41
Update 'cat' example
2020-04-22 23:55:28 +02:00
sharkdp
74d4377ed2
Add advanced example
2020-04-22 23:55:28 +02:00
sharkdp
6a124591df
Easier configuration of style components
2020-04-22 23:55:28 +02:00
sharkdp
7a87315b94
Fix #937
2020-04-22 23:55:28 +02:00
sharkdp
0cde4e9121
Numbers => LineNumbers
2020-04-22 23:55:28 +02:00
sharkdp
36dde9275a
Simplify style_components
2020-04-22 23:55:28 +02:00
sharkdp
a8f759c080
Rename wrap => wrapping
2020-04-22 23:55:28 +02:00
sharkdp
f034be71e7
rename run => print
2020-04-22 23:55:28 +02:00
sharkdp
eee35e54e9
Update documentation
2020-04-22 23:55:28 +02:00
sharkdp
ec0ce05455
Better API for highlighting lines
2020-04-22 23:55:28 +02:00
sharkdp
13e6b3fac7
Reduce public API
2020-04-22 23:55:28 +02:00
sharkdp
26c951fec4
Fix warnings, sort imports, input from string
2020-04-22 23:55:28 +02:00
sharkdp
590960f7f5
Completely refactor 'input' module
2020-04-22 23:55:28 +02:00
sharkdp
b4d54106fe
Fix comment
2020-04-22 23:55:28 +02:00
sharkdp
f3b90ddb38
Add InputDescription
2020-04-22 23:55:28 +02:00
sharkdp
3bacfc5184
Allow fluent style
2020-04-22 23:55:28 +02:00
sharkdp
f8d0956893
Rename InputFile => Input
2020-04-22 23:55:28 +02:00
sharkdp
1dc328ad49
Separate inputs from config
2020-04-22 23:55:28 +02:00
sharkdp
5e5cb89da6
Add all builder options
2020-04-22 23:55:28 +02:00
sharkdp
057e4eced1
Large refactoring towards a better builder structure
2020-04-22 23:55:28 +02:00
sharkdp
27974616bf
Initial verison of PrettyPrinter builder
2020-04-22 23:55:28 +02:00
sharkdp
319ab779ee
Use 4-bit ANSI codes for base16 theme
...
closes #865
2020-04-22 10:22:11 +02:00
sharkdp
70480ee9d4
Bump version to v0.14.0
2020-04-21 18:21:22 +02:00
sharkdp
371c929ede
Update CHANGELOG
2020-04-21 18:21:12 +02:00
sharkdp
864656bd11
Pass --no-init on Windows if less version < 559
...
We used to call `less` with
``` bash
less --RAW-CONTROL-CHARS --quit-if-one-screen --no-init
```
We only passed `--no-init` because there was a bug with previous versions
of `less` which required the use of `--no-init` in combination with
`--quit-if-one-screen` to prevent this "no output" issue from happening.
Since bat 0.13, [we omit the `--no-init` option](https://github.com/sharkdp/bat/blob/0ecc94956b88beed27ca13a130c8ba09f1a220d8/src/output.rs#L85-L97 )
if we can detect that the version of `less` is higher than or equal to 530. We
did that because `--no-init` breaks mouse support and because [less 530 fixed
the above-mentioned bug](http://www.greenwoodsoftware.com/less/news.530.html ).
However, it seems that this bug was *not* fixed on Windows!
According to @gwsw, the issue should be fixed with less 559 on Windows.
closes #887
2020-04-21 18:18:03 +02:00
sharkdp
2e9cf63a5f
Fix compilation of library
2020-04-21 18:14:31 +02:00
sharkdp
886b22e0ee
Do not store metadata.yaml file in git
2020-04-21 18:14:31 +02:00
sharkdp
72618db179
Add metadata information to cached assets
...
When saving/reading user-provided syntaxes or themes, `bat` will now maintain a
`metadata.yaml` file which includes information about the `bat` version which was
used to create the cached files. When loading cached files, we now print an error
if they have been created with an incompatible version
closes #882
2020-04-21 18:14:31 +02:00
sharkdp
c8273369cc
Make get_cache_dir private
2020-04-21 18:14:31 +02:00
sharkdp
95a56a2795
Typo in CHANGELOG
2020-04-21 17:49:36 +02:00
sharkdp
859ff50766
Update default config file, add comment about tmux mouse scrolling support
2020-04-21 17:45:14 +02:00
sharkdp
ce583eb9bf
Revert "Pass '--mouse' to less versions >= 551"
...
This reverts commit cb21b74ecd .
2020-04-21 17:29:01 +02:00
sharkdp
3a195be14e
Revert "Only enable --mouse when running from tmux, see #904 "
...
This reverts commit 5f6e310152 .
2020-04-21 17:28:37 +02:00
sharkdp
5f6e310152
Only enable --mouse when running from tmux, see #904
2020-04-21 16:15:02 +02:00
sharkdp
5449472f15
Remove invalid UTF-8 file from repo, use temp file instead
2020-04-21 16:02:28 +02:00
sharkdp
82e20bfe14
Fix bug for file with invalid-utf8 filenames
2020-04-21 14:09:18 +02:00
sharkdp
47abb192bc
Patch Rust syntax file
...
closes #924
2020-04-21 13:45:26 +02:00
sharkdp
03a7d6be92
Disable Travis caching
2020-04-21 13:44:51 +02:00
sharkdp
a927815292
Update CHANGELOG
2020-04-21 11:50:26 +02:00
sharkdp
3447a03433
Update dependencies
2020-04-21 11:50:26 +02:00
sharkdp
03c2281828
Add do-not-panic! regression tests
2020-04-21 11:50:26 +02:00
sharkdp
c386cb35fb
Pass '--mouse' to less versions >= 551
...
When using `less` version 551 or newer, `bat` will now pass the `--mouse` argument, allowing
for (better) mouse scrolling support in some terminals.
closes #904
2020-04-21 10:00:32 +02:00
sharkdp
97ea3dd4dc
Update CHANGELOG
2020-04-21 08:58:38 +02:00
sharkdp
a6d9d1551f
Improve error message
2020-04-21 08:57:15 +02:00
sharkdp
34619a2e89
Small refactoring, handle invalid UTF-8 filenames
2020-04-21 08:57:15 +02:00
sharkdp
8067fd9eda
Fix build on 1.37
2020-04-21 08:57:15 +02:00
sharkdp
98ba9e0101
Use to_string_lossy
2020-04-21 08:57:15 +02:00
sharkdp
1b8ce60054
Pass stdin as a generic BufRead, fix stdin tests
2020-04-21 08:57:15 +02:00
sharkdp
d5a31dc2ec
Remove commented-out code
2020-04-21 08:57:15 +02:00
sharkdp
051dd4ba87
Make filename method private
2020-04-21 08:57:15 +02:00
sharkdp
2ad1848859
Do not take optional as argument
2020-04-21 08:57:15 +02:00
sharkdp
90e7d2fe33
Rename field name, new constructors
2020-04-21 08:57:15 +02:00
sharkdp
0ecc94956b
Add performance patch for Makefile syntax
...
Thanks to @keith-hall!
closes #750
2020-04-13 10:38:22 +02:00
sharkdp
f5145ef130
Move Rego syntax
2020-04-12 19:20:28 +02:00