Martin Nordholts
a3ea798246
Credit syntax definition and theme authors with new `--acknowledgements` option ( #1971 )
...
The text that is printed is generated when building assets, by analyzing LICENSE
and NOTICE files that comes with syntaxes and themes.
We take this opportunity to also add a NOTICE file as defined by Apache License 2.0.
3 years ago
Martin Nordholts
5519f9c716
Use once_cell instead of lazy_static
...
once_cell can do what lazy_static does and more, so replace lazy_static with
once_cell.
See https://docs.rs/once_cell/1.8.0/once_cell/#general-purpose-lazy-evaluation
3 years ago
Bojan Đurđević
d6ed5e6746
Support for ignored-suffix CLI arguments ( #1892 )
3 years ago
Martin Nordholts
4081ace4b9
Include git hash in `bat -V` and `bat --version` output if present
...
I had to use a `lazy_static` due to that the clap API that only accepts a
reference to a version string. And, in our code, only a 'static reference to a
version string.
Code could probably be refactored to accept a "normal" reference, but that would
be a major undertaking.
3 years ago
Bojan Durdevic
0748783404
Support for line range plus syntax
3 years ago
Martin Nordholts
89217e0d58
Make --no-paging and --no-pager work again
3 years ago
Martin Nordholts
8ecd23eab4
Make --style docs reflect that 'full' is default
...
Closes #1742
3 years ago
Martin Nordholts
b040efff79
Support a hidden arg --no-custom-assets that skips loading assets from the cache
3 years ago
sharkdp
1ae16fca90
Improve --map-syntax documentation, see #1386
3 years ago
sharkdp
26136be903
Add --diagnostics alias
3 years ago
sharkdp
ebb97e94a9
Add --diagnostic option to bat
3 years ago
Tom Milligan
aa4000cb0d
style: add component 'rule' for horizontal file delimiter
4 years ago
henil
8ff890635f
add an after help NOTE
4 years ago
sharkdp
32d22f464d
Improve --style help text, closes #1146
4 years ago
sharkdp
71b2089384
Code formatting
4 years ago
sharkdp
57aa88a13a
Improve --file-name help text, closes #1109
4 years ago
Alexander Karlis
d349974089
updated PR based on comments
4 years ago
Alexander Karlis
fdf11326ef
added additional alias for color=always when always-decorations flag is triggered
4 years ago
Alexander Karlis
565a80305c
Added new alias for 'decoration=always'
4 years ago
sharkdp
2b3457e8d6
Update --help text for --color
4 years ago
Dash Peters
c264f74771
Hide alias in help, update man and completions
...
A long alias doesn't make sense, since `--paging=never` already exists
4 years ago
Dash Peters
5fdeeabb44
Change to name no-paging, add long flag and alias
4 years ago
Dash Peters
2575aae945
Add short flag for --paging=never
4 years ago
Ethan P
8b481dd41f
Add support for NO_COLOR env var ( #1021 )
4 years ago
Ethan P
887e61a99d
Allow application to be built without git support
...
Caveats:
The help descriptions aren't changed with you remove the "git" feature.
4 years ago
sharkdp
989109145a
Add '-d' for '--diff'
4 years ago
Lzu Tao
e37e9c1214
Fix some clippy lints
...
Some might actually improve perf
4 years ago
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
4 years ago
David Tolnay
570805bc98
Strip dependencies of bat-as-a-library
4 years ago
David Peter
37b3b8730d
Merge pull request #871 from neuronull/fix_654_stdin_filename
...
Implement --file-name<name> option
4 years ago
Josh Mickley
376c556862
Add option to generate a default config file, fixes #870
4 years ago
Kyle Criddle
38178fedf4
Merge branch 'master' into fix_654_stdin_filename
4 years ago
sharkdp
978def2d40
Update documentation
4 years ago
Kyle Criddle
517be5c7bc
Implement --file-name<name> option
...
- can specify filename to be displayed when printing.
- useful for when piping data from STDIN
Closes #654
4 years ago
Liam Kalir
5ef1c6cce2
Grammar touch-ups, more descriptive error message for invalid line
...
ranges
4 years ago
Liam Kalir
93881d9a64
Adds range syntax for line highlights
4 years ago
sharkdp
20ba984c6d
Update help text, closes #713
5 years ago
Helder M
3b5fcf4619
Update options sort order in --help and manpage file
...
This commit updates the sort order of --help options in order to improve
usability/importance putting most useful/used commands on top. In
addition to that, similar options were grouped together.
5 years ago
Fahmi Akbar Wildana
e981bd88c1
Move src/bin/* into src/bin/bat/
...
This will limit [[bin]] to *bat* only which will make:
- `cargo run` works without specifying --bin
- prevent `cargo build --bins` to produce multiple binaries (app,clap_app,...)
5 years ago