Lena
4c85483486
Inline `format!` args wherever possible
3 months ago
rhysd
4cc2a489d0
Remove unnecessary heap allocations in `PrettyPrinter::print` for style components
1 year ago
Isaac Horvath
adea895026
Add a --style=default option ( #2119 )
...
* Add a --style=default option
* Added --style=default test and CHANGELOG entry
* Format CHANGELOG.md options with quotes
Co-authored-by: Martin Nordholts <enselic@gmail.com>
* Update help text for '--style'
* Make --style=default the default option
* Update style descriptions: "basic" -> "recommended"
* Add integration test for --style=default as default
* Update clap long help for --style
2 years ago
Mahdi Dibaiee
312c8ef01f
Add new `--style` called `header-filesize` and display it by default ( #1988 )
...
Also rename `header` to `header-filename`.
Related to #1701
2 years ago
Tom Milligan
aa4000cb0d
style: add component 'rule' for horizontal file delimiter
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
702cb198da
Rename error module
4 years ago
sharkdp
0cde4e9121
Numbers => LineNumbers
4 years ago
David Tolnay
4e11abdf9b
Move git changes support behind a feature
4 years ago
sharkdp
84ba323b1c
Rename output component to 'style compinent', move wrap to separate module
4 years ago
sharkdp
b9ce3c248c
Simplify 'using_controller' example
5 years ago
Fahmi Akbar Wildana
e287594654
Fix compile-error on Rust v1.35.0
5 years ago
Fahmi Akbar Wildana
2253d07341
Derive fmt::Debug whenever possible
5 years ago
Fahmi Akbar Wildana
7208a63a49
Implement trait Default for struct Config
5 years ago
Ethan P
7f2e61d579
Add new style component to separate multiple '--line-range's
5 years ago
Daniele Esposti
82f14121bd
Applied linter fixes
5 years ago
Daniele Esposti
a21ae614e6
Migrated to Rust 2018
5 years ago
sharkdp
80da0dc619
run cargo fmt
6 years ago
sharkdp
20b02e72b3
Disable wrapping when `--style` is plain
...
closes #289
6 years ago
sharkdp
dccf8d8221
Use a more streamlined version of style-component collection
6 years ago
eth-p
d8030626f8
Automatically disable wrapping when style is plain.
6 years ago
ms2300
5444b0dfed
Fixes mut issue
6 years ago
sharkdp
9316f2a758
Major refactoring and cleanup
6 years ago
eth-p
870b3c0daf
PR #102 Followed @BrainMaestro's suggestions
...
Also ran cargo fmt.
6 years ago
eth-p
d4b438b9d3
Fix padding, add --wrap argument, disable wrap for non-tty. (Fixed)
...
I'm not quite sure what was up with git on that last commit, but it's
all properly committed now.
6 years ago
eth-p
fc160b0dcd
PR #102 Review Changes
...
- Reformatted code.
- Removed leftover code.
- Removed leftover comments.
- Fixed compiling on Rust 1.24.0
6 years ago
eth-p
4e4110bf50
Added line wrapping.
6 years ago
Ezinwa Okpoechi
f711fb5006
Split style to separate module
6 years ago