sharkdp
bd8a13dbc9
Initial implementation of glob-based syntax mapping
2020-03-22 11:02:51 +01:00
sharkdp
2c2861db6a
Further simplify module structure
2020-03-21 22:21:23 +01:00
sharkdp
bb0a3d586e
Simplify public API module structure
2020-03-21 22:21:23 +01:00
sharkdp
84ba323b1c
Rename output component to 'style compinent', move wrap to separate module
2020-03-21 22:21:23 +01:00
sharkdp
acf51bd7b3
Rename methods and parameters
2020-03-21 22:21:23 +01:00
sharkdp
83dc13a86d
Add fallback theme, remove BAT_THEME_DEFAULT
2020-03-21 22:21:23 +01:00
sharkdp
094c526a0e
Hide some methods from HighlightingAssets
2020-03-21 22:21:23 +01:00
sharkdp
62f2d0c100
Do not export syntax_set and theme_set
2020-03-21 22:21:23 +01:00
sharkdp
fc1ca0875a
Move error handling to a callback
2020-03-21 22:21:23 +01:00
sharkdp
a7338e2ea2
Run cargo fmt
2020-03-21 22:21:23 +01:00
sharkdp
9b8ddb24d1
move Config struct to separate file
2020-03-21 22:21:23 +01:00
sharkdp
fedd32173e
Restructure and fix bug in line range module
2020-03-21 19:19:15 +01:00
sharkdp
06b7be7ee9
Major restructuring of theme/syntax handling
2020-03-21 19:19:15 +01:00
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
2020-03-17 20:29:01 -06:00
sharkdp
ca066bf7cd
Run 'cargo fmt'
2020-02-28 10:27:06 +01:00
sharkdp
7779d9f622
Allow for non-unicode filenames, closes #225
2020-02-13 08:25:04 +01:00
Liam Kalir
5ef1c6cce2
Grammar touch-ups, more descriptive error message for invalid line
...
ranges
2020-01-27 06:54:00 +01:00
Liam Kalir
93881d9a64
Adds range syntax for line highlights
2020-01-27 06:54:00 +01:00
sharkdp
20ba984c6d
Update help text, closes #713
2019-12-22 16:05:00 +01:00
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>
2019-12-22 15:20:34 +01:00
sharkdp
40e5befdc7
Minor change
2019-12-15 20:55:48 +01:00
Franco Victorio
f94ff93953
Accept "default" as a theme
2019-12-15 20:55:48 +01:00
sharkdp
3334f74b72
Remove custom 'transpose' function
2019-10-30 19:47:51 +01:00
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.
2019-10-29 19:54:25 +01:00
Fahmi Akbar Wildana
e542621125
Move back printer.rs and others into lib
...
others:
bin/bat/{controller,decorations,output,printer}.rs
2019-10-20 21:43:51 +02:00
Fahmi Akbar Wildana
26439b41d2
Move Config,PagingMode from app.rs into lib.rs
2019-10-20 21:43:51 +02:00
Fahmi Akbar Wildana
a2ee753b25
Move config.rs into src/bin/bat/
2019-10-20 21:43:51 +02:00
Fahmi Akbar Wildana
837d0998da
Remove unused macros in bin/bat
2019-10-20 21:43:51 +02:00
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
2019-10-20 21:43:51 +02:00
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,...)
2019-10-20 21:43:51 +02:00
Fahmi Akbar Wildana
cfd33168af
Fix all compile errors in lib.rs 🚚
...
* Move {controller,output,printer,decorations}.rs into src/bin/
* Add `mod errors` from main.rs
2019-10-20 21:43:51 +02:00
Fahmi Akbar Wildana
fc0ad4db2e
Move {main,app,clap_app}.rs into src/bin/
2019-10-20 21:43:51 +02:00