Commit Graph

307 Commits (c96927b550bec973091b7b0a2a0f359b6ea07b9c)

Author SHA1 Message Date
Daniele Esposti f259ff2920 Formatted code 6 years ago
Daniele Esposti 82f14121bd Applied linter fixes 6 years ago
Daniele Esposti a21ae614e6 Migrated to Rust 2018 6 years ago
sharkdp f0771d6532 Do not replace arguments to pager when --pager is used, closes #509 6 years ago
Reid Wagner 76b7418e35 Only print contents if file wasn't empty, or EOF wasn't first thing received from stdin. 6 years ago
Reid Wagner 10c5f79640 Revert "Check result of read_until, and return Error if 0, which indicates EOF was found before delimeter."
This reverts commit 61e888de7f.
6 years ago
sharkdp 9e11d66979 Handle UTF-16 encoding errors with replacement characters 6 years ago
sharkdp e09499b3df Move config-dir and cache-dir from 'bat cache' to 'bat' 6 years ago
sharkdp cff01d81fa Rename 'bat cache --init' to 'bat cache --build' 6 years ago
sharkdp 6e8fca5bb2 Replace less command line arguments only for PAGER 6 years ago
Park Juhyung 63c77383ce Ignore flags from PAGER env var if the program is 'less' 6 years ago
sharkdp 4df22e617f Update documentation 6 years ago
sharkdp 6473e8c1be Remove import 6 years ago
sharkdp 972a764a74 Simplify Optional handling 6 years ago
sharkdp 54143d1403 Add --cache-dir option 6 years ago
sharkdp 6523bbf62f Replace 'is_absolute_path' with map and filter 6 years ago
Lavi 05e2c2c66b removed compile errors and warnings on non-macs 6 years ago
Lavi 69227222b5 config and cache now check XDG env vars first
`XDG_CACHE_HOME` and `XDG_CONFIG_HOME` are checked first and fall-back
to `~/.cache/` and `~/.config/`.
6 years ago
Lavi 49af3e854b Set cache_dir on MacOS to ~/.cache/bat/ 6 years ago
Lavi 6a8e4757b7 Updated bat config dir for MacOs
Removed directories crate and using dirs_rs
Changed bat config file and cache dir on MacOs:
config: ~/.config/bat/config
cache: ~/.config/bat/cache/
6 years ago
Reid Wagner 61e888de7f Check result of read_until, and return Error if 0, which indicates EOF was found before delimeter. 6 years ago
sharkdp bd68684537 Fix the number of values to one 6 years ago
sharkdp c2847f6a9f Short options for line-range and highlight-line 6 years ago
sharkdp cf7ed042c1 Colorize the whole line 6 years ago
sharkdp 6b92814ea0 Allow for multiple highlighted lines 6 years ago
sharkdp a236a9b195 Merge branch 'master' of https://github.com/tskinn/bat into tskinn-master 6 years ago
sharkdp fee57d71d9 Print ANSI-reset code before newline
fixes #379
6 years ago
sharkdp 397def1320 Omit launching of pager if NO file exists
closes #387
6 years ago
ufuji1984 4ff360669f add quotes around filename
and make it more concise by using map_err
6 years ago
ufuji1984 549e5d7355 Report filename if File::open return Err
From issue #441
6 years ago
Ole Martin Ruud 348c9f3562 Enhance SyntaxMapping with impl Trait 6 years ago
Ole Martin Ruud 6b6a8f8e16 Fix doc comment typo 6 years ago
Arnav Borborah 532af6556d Use Rust inclusive range (stable in 1.26) 6 years ago
sharkdp f98a96c1ed Update help text 6 years ago
sharkdp 7cac07d845 issue #383: Handle cases like `PAGER=/usr/bin/bat` 6 years ago
Rodrigo Orem 148caa1381 Fix code style 6 years ago
Rodrigo Orem ab27cac0cc Remove args when change from bat to less 6 years ago
Rodrigo Orem 01fcbf2183 Better placement of bat detection 6 years ago
Rodrigo Orem 8a0c30b385 Avoid endless bat executions with PAGER="bat"
From issue #383
6 years ago
Nisheet Sinvhal 18d1a3b973 Changed italics to use-italic-text in config
Better placing of italics in help and also added long_help for it
6 years ago
Nisheet Sinvhal dc10246bd2 Linting 6 years ago
Nisheet Sinvhal 44bdae0212 Linting 6 years ago
Nisheet Sinvhal 1ece38a4c4 Changed flag name 6 years ago
Nisheet Sinvhal e90308e1f8 italics enable|disable working 6 years ago
Nisheet Sinvhal d702d6740c Added args 6 years ago
Ricky 558134f6c8 Changed to unwrap methods, added integration tests 6 years ago
Ricky 1dd57e6d7e Ran rust fmt 6 years ago
Ricky 20ba84d1fa Added in environment variable and the result is a file check in config.rs 6 years ago
sharkdp e81f9b23e6 Fix `--show-all` for UTF-16 encoding 6 years ago
sharkdp 50dc4a79b0 Display line-feed as instead of 6 years ago