Kienyew
52d6701f8f
Fix undesired behavior
4 years ago
Kienyew
f97634011e
Handle file extension conflicts in --list-languages ( #1076 )
4 years ago
sharkdp
5df449bcf3
Remove unnecessary parenthesis
4 years ago
Alexander Karlis
6017989c4c
removed printlns, updated Changelog, updated man
4 years ago
Alexander Karlis
d349974089
updated PR based on comments
4 years ago
Alexander Karlis
ccdea6a429
remove println
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
Attila Gonda
a0b89a68d9
Update generated config to reflect pager argument behaviour
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
sharkdp
19aa878a08
Remove explicit type annotation
4 years ago
sharkdp
9f52012443
Prevent allocation of additional Strings
4 years ago
sharkdp
e57e9b6dbb
Use 'or_insert_with'
4 years ago
sharkdp
ec2722d465
Use 'if let' instead of 'match'
4 years ago
Alex Novak
9e2ea5fdd4
Incorporating feedback
4 years ago
Alex Novak
48b4a6a906
Adds a little logic to main to get other mappings from config
4 years ago
Ethan P
9d08c0102e
Replace Input::stdin_as_file with bat-application functions
4 years ago
Ethan P
a3357547ea
Remove unused with_name for theme preview file
4 years ago
Ethan P
7a9decad70
Remove Input.as_file and add Input::stdin_as_file
4 years ago
Ethan P
589c94aa93
Fix regression with --list-themes and --language
4 years ago
Ethan P
798b742617
Refactor InputDescription API into Input API
4 years ago
Ethan P
0319149b4d
[breaking] Remove special handling for theme previews
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
48a7ce3bf2
Write error messages to pager, if attached
...
closes #946
4 years ago
sharkdp
989109145a
Add '-d' for '--diff'
4 years ago
sharkdp
8e18786556
Run 'cargo fmt'
4 years ago
sharkdp
81488adf8b
Use unreachable!(…)
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
sharkdp
5d71056209
Fix import in app
4 years ago
sharkdp
8961f7aef8
Move PagingMode to separate module
4 years ago
sharkdp
261a7ea154
Add *_with_name methods
4 years ago
sharkdp
702cb198da
Rename error module
4 years ago
sharkdp
6a124591df
Easier configuration of style components
4 years ago
sharkdp
0cde4e9121
Numbers => LineNumbers
4 years ago
sharkdp
ec0ce05455
Better API for highlighting lines
4 years ago
sharkdp
13e6b3fac7
Reduce public API
4 years ago
sharkdp
26c951fec4
Fix warnings, sort imports, input from string
4 years ago
sharkdp
590960f7f5
Completely refactor 'input' module
4 years ago
sharkdp
f8d0956893
Rename InputFile => Input
4 years ago
sharkdp
1dc328ad49
Separate inputs from config
4 years ago
sharkdp
057e4eced1
Large refactoring towards a better builder structure
4 years ago
sharkdp
27974616bf
Initial verison of PrettyPrinter builder
4 years ago
sharkdp
2e9cf63a5f
Fix compilation of library
4 years ago
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
4 years ago
sharkdp
c8273369cc
Make get_cache_dir private
4 years ago
sharkdp
859ff50766
Update default config file, add comment about tmux mouse scrolling support
4 years ago
sharkdp
82e20bfe14
Fix bug for file with invalid-utf8 filenames
4 years ago
sharkdp
34619a2e89
Small refactoring, handle invalid UTF-8 filenames
4 years ago
sharkdp
8067fd9eda
Fix build on 1.37
4 years ago
sharkdp
2ad1848859
Do not take optional as argument
4 years ago
sharkdp
90e7d2fe33
Rename field name, new constructors
4 years ago
Kyle Criddle
04fa84aea7
Moved user_provided_filename to be contained within OrdinaryFile struct
4 years ago
sharkdp
495fab24a5
cargo fmt
4 years ago
David Tolnay
570805bc98
Strip dependencies of bat-as-a-library
4 years ago
sharkdp
3e8d444c78
Fix for Rust 1.37
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
40a827ebcb
Graceful handling of error conditions
4 years ago
Josh Mickley
376c556862
Add option to generate a default config file, fixes #870
4 years ago
Kyle Criddle
83772bd2cf
Minor --file-name code hygeine
4 years ago
Kyle Criddle
38178fedf4
Merge branch 'master' into fix_654_stdin_filename
4 years ago
Kyle Criddle
59f2e2d58d
Implemented --file-name for multiple files + tests
4 years ago
sharkdp
978def2d40
Update documentation
4 years ago
sharkdp
bd8a13dbc9
Initial implementation of glob-based syntax mapping
4 years ago
sharkdp
2c2861db6a
Further simplify module structure
4 years ago
sharkdp
bb0a3d586e
Simplify public API module structure
4 years ago
sharkdp
84ba323b1c
Rename output component to 'style compinent', move wrap to separate module
4 years ago
sharkdp
acf51bd7b3
Rename methods and parameters
4 years ago
sharkdp
83dc13a86d
Add fallback theme, remove BAT_THEME_DEFAULT
4 years ago
sharkdp
094c526a0e
Hide some methods from HighlightingAssets
4 years ago
sharkdp
62f2d0c100
Do not export syntax_set and theme_set
4 years ago
sharkdp
fc1ca0875a
Move error handling to a callback
4 years ago
sharkdp
a7338e2ea2
Run cargo fmt
4 years ago
sharkdp
9b8ddb24d1
move Config struct to separate file
4 years ago
sharkdp
fedd32173e
Restructure and fix bug in line range module
4 years ago
sharkdp
06b7be7ee9
Major restructuring of theme/syntax handling
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
sharkdp
ca066bf7cd
Run 'cargo fmt'
4 years ago
sharkdp
7779d9f622
Allow for non-unicode filenames, closes #225
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
fusillicode
6311ca22f9
Add check for terminal-width in output_wrap config value in not interactive case
...
Co-authored-by: allevo <tomallevi@gmail.com>
Co-authored-by: gildo <gildo.fiorito@gmail.com>
5 years ago
sharkdp
40e5befdc7
Minor change
5 years ago
Franco Victorio
f94ff93953
Accept "default" as a theme
5 years ago
sharkdp
3334f74b72
Remove custom 'transpose' function
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
e542621125
Move back printer.rs and others into lib
...
others:
bin/bat/{controller,decorations,output,printer}.rs
5 years ago
Fahmi Akbar Wildana
26439b41d2
Move Config,PagingMode from app.rs into lib.rs
5 years ago
Fahmi Akbar Wildana
a2ee753b25
Move config.rs into src/bin/bat/
5 years ago
Fahmi Akbar Wildana
837d0998da
Remove unused macros in bin/bat
5 years ago
Fahmi Akbar Wildana
23d80f9e84
Fix all compile errors in bin/bat ➕
...
* Change `mod errors` in lib.rs to public
* Add `fn handle_error` in lib.rs errors module
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