Commit Graph

28 Commits (590960f7f5b5454c2da8c36409a8d57a58b2980c)

Author SHA1 Message Date
sharkdp 590960f7f5 Completely refactor 'input' module 4 years ago
sharkdp f8d0956893 Rename InputFile => Input 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 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
David Tolnay 570805bc98 Strip dependencies of bat-as-a-library 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 9b8ddb24d1 move Config struct to separate file 4 years ago
sharkdp 7e0115641d Move error module 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
Liam Kalir 93881d9a64 Adds range syntax for line highlights 4 years ago
sharkdp 67fe804256 Do not pass '--no-init' on newer less versions
With this change, we do not pass the `--no-init` option in newer
versions of less (530 or higher).

This fixes #749
5 years ago
sharkdp 850677f121 Remove 'advanced' example 5 years ago
sharkdp c132e19e74 Make a few modules private 5 years ago
sharkdp 3334f74b72 Remove custom 'transpose' function 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
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 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 710a1df4ff Fix all compile warnings in lib.rs 5 years ago
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
5 years ago
Fahmi Akbar Wildana eefdb186b8 Add lib.rs 5 years ago