sharkdp
f0771d6532
Do not replace arguments to pager when --pager is used, closes #509
2019-02-18 20:28:44 +01:00
Reid Wagner
76b7418e35
Only print contents if file wasn't empty, or EOF wasn't first thing received from stdin.
2019-02-11 20:33:16 +01:00
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
.
2019-02-11 20:33:16 +01:00
sharkdp
9e11d66979
Handle UTF-16 encoding errors with replacement characters
2019-02-10 10:18:07 +01:00
sharkdp
e09499b3df
Move config-dir and cache-dir from 'bat cache' to 'bat'
2019-02-07 23:27:53 +01:00
sharkdp
cff01d81fa
Rename 'bat cache --init' to 'bat cache --build'
2019-02-07 23:27:53 +01:00
sharkdp
6e8fca5bb2
Replace less command line arguments only for PAGER
2019-02-07 22:37:33 +01:00
Park Juhyung
63c77383ce
Ignore flags from PAGER env var if the program is 'less'
2019-02-07 22:37:33 +01:00
sharkdp
4df22e617f
Update documentation
2019-02-07 22:19:32 +01:00
sharkdp
6473e8c1be
Remove import
2019-02-07 22:19:32 +01:00
sharkdp
972a764a74
Simplify Optional handling
2019-02-07 22:19:32 +01:00
sharkdp
54143d1403
Add --cache-dir option
2019-02-07 22:19:32 +01:00
sharkdp
6523bbf62f
Replace 'is_absolute_path' with map and filter
2019-02-07 22:19:32 +01:00
Lavi
05e2c2c66b
removed compile errors and warnings on non-macs
2019-02-07 22:19:32 +01:00
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/`.
2019-02-07 22:19:32 +01:00
Lavi
49af3e854b
Set cache_dir on MacOS to ~/.cache/bat/
2019-02-07 22:19:32 +01:00
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/
2019-02-07 22:19:32 +01:00
Reid Wagner
61e888de7f
Check result of read_until, and return Error if 0, which indicates EOF was found before delimeter.
2019-02-07 07:32:28 +01:00
sharkdp
bd68684537
Fix the number of values to one
2018-12-16 22:35:22 +01:00
sharkdp
c2847f6a9f
Short options for line-range and highlight-line
2018-12-16 22:17:39 +01:00
sharkdp
cf7ed042c1
Colorize the whole line
2018-12-16 21:53:15 +01:00
sharkdp
6b92814ea0
Allow for multiple highlighted lines
2018-12-16 21:00:18 +01:00
sharkdp
a236a9b195
Merge branch 'master' of https://github.com/tskinn/bat into tskinn-master
2018-12-16 20:43:36 +01:00
sharkdp
fee57d71d9
Print ANSI-reset code before newline
...
fixes #379
2018-12-14 23:34:13 +01:00
sharkdp
397def1320
Omit launching of pager if NO file exists
...
closes #387
2018-12-14 22:53:31 +01:00
ufuji1984
4ff360669f
add quotes around filename
...
and make it more concise by using map_err
2018-12-11 22:24:52 +01:00
ufuji1984
549e5d7355
Report filename if File::open return Err
...
From issue #441
2018-12-11 22:24:52 +01:00
Ole Martin Ruud
348c9f3562
Enhance SyntaxMapping with impl Trait
2018-11-27 20:36:23 +01:00
Ole Martin Ruud
6b6a8f8e16
Fix doc comment typo
2018-11-27 20:34:32 +01:00
Arnav Borborah
532af6556d
Use Rust inclusive range (stable in 1.26)
2018-11-11 14:42:22 +01:00
sharkdp
f98a96c1ed
Update help text
2018-11-11 12:26:39 +01:00
sharkdp
7cac07d845
issue #383 : Handle cases like PAGER=/usr/bin/bat
2018-11-06 19:53:32 +01:00
Rodrigo Orem
148caa1381
Fix code style
2018-11-06 19:35:41 +01:00
Rodrigo Orem
ab27cac0cc
Remove args when change from bat to less
2018-11-06 19:35:41 +01:00
Rodrigo Orem
01fcbf2183
Better placement of bat detection
2018-11-06 19:35:41 +01:00
Rodrigo Orem
8a0c30b385
Avoid endless bat executions with PAGER="bat"
...
From issue #383
2018-11-06 19:35:41 +01:00
Nisheet Sinvhal
18d1a3b973
Changed italics to use-italic-text in config
...
Better placing of italics in help and also added long_help for it
2018-11-04 19:40:05 +01:00
Nisheet Sinvhal
dc10246bd2
Linting
2018-11-04 19:40:05 +01:00
Nisheet Sinvhal
44bdae0212
Linting
2018-11-04 19:40:05 +01:00
Nisheet Sinvhal
1ece38a4c4
Changed flag name
2018-11-04 19:40:05 +01:00
Nisheet Sinvhal
e90308e1f8
italics enable|disable working
2018-11-04 19:40:05 +01:00
Nisheet Sinvhal
d702d6740c
Added args
2018-11-04 19:40:05 +01:00
Ricky
558134f6c8
Changed to unwrap methods, added integration tests
2018-11-04 11:19:49 +01:00
Ricky
1dd57e6d7e
Ran rust fmt
2018-11-04 11:19:49 +01:00
Ricky
20ba84d1fa
Added in environment variable and the result is a file check in config.rs
2018-11-04 11:19:49 +01:00
sharkdp
e81f9b23e6
Fix --show-all
for UTF-16 encoding
2018-11-01 22:00:47 +01:00
sharkdp
50dc4a79b0
Display line-feed as instead of
2018-11-01 22:00:47 +01:00
sharkdp
8fa8f44706
Use ↹
character if tab-width == 1.
2018-11-01 22:00:47 +01:00
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.
2018-11-01 22:00:47 +01:00
sharkdp
4492d99556
Change default tab width to 4
2018-11-01 15:30:58 +01:00