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
sharkdp
8fa8f44706
Use `↹` character if tab-width == 1.
6 years ago
sharkdp
ecd862d9ff
Feature: Highlight non-printable characters
...
Adds a new `-A`/`--show-all` option (in analogy to GNU Linux `cat`s option) that
highlights non-printable characters like space, tab or newline.
This works in two steps:
- **Preprocessing**: replace space by `•`, replace tab by `├──┤`, replace
newline by ``, etc.
- **Highlighting**: Use a newly written Sublime syntax to highlight
these special symbols.
Note: This feature is not technically a drop-in replacement for GNU `cat`s
`--show-all` but it has the same purpose.
6 years ago
sharkdp
4492d99556
Change default tab width to 4
6 years ago
sharkdp
dda27b253b
Allow offset values in `--terminal-width`
...
Allows the `width` argument to `--terminal-width` to be an offset
instead of an absolute number. Examples:
--terminal-width=80 # Set output width to 80 characters
--terminal-width=-2 # Set output width to actual_width - 2
closes #376
6 years ago
David Peter
abcd09f869
Remove commented-out code
6 years ago
Sindre Johansen
41a5ff039b
Only use the last argument of {style,plain,number}
6 years ago
Sindre Johansen
155bad3862
Rustfmt
6 years ago
Sindre Johansen
7c98a1c901
When specifying style multiple times the last occurence wins
...
Closes : #367
6 years ago
David Peter
c1246fcd53
Update help text
6 years ago