Commit Graph

117 Commits (f74263e71dc27ba988c99bd179fe53469e0f4a69)

Author SHA1 Message Date
sharkdp a348a9f68e Handle syntax-set loading errors 6 years ago
TA Thanh Dinh a13eb60df3 Using slice notation instead of as_ref 6 years ago
sharkdp 9342d0bb24 Explicitly specify which args override themselves 6 years ago
sharkdp 36d7250af2 Allow arguments to override themselves 6 years ago
Ezinwa Okpoechi a452467e06 Remove unnecessary space if there are no decorations 6 years ago
Ezinwa Okpoechi 2ea3758c4b Justify header when there are decorations but no grid 6 years ago
Gert Hulselmans 65bb4c7ee6 Print themes directory in error message if no themes could be loaded from it.
Before this patch:
    $ bat cache --init
    [bat error]: Could not load themes from '{}'

After:
    $ bat cache --init
    [bat error]: Could not load themes from '/home/user/.config/bat/themes'
6 years ago
Gert Hulselmans 33bbf25468 Fix launching of pager so text is interpreted as UTF-8 by default.
This fixes issue https://github.com/sharkdp/bat/issues/98
6 years ago
Ezinwa Okpoechi 2712d63a4b Move asset clearing to assets module 6 years ago
Ezinwa Okpoechi b21fb6bca8 Extract features to separate module 6 years ago
Ezinwa Okpoechi ee43377a9c Move colors to printer module 6 years ago
Ezinwa Okpoechi 120b33a9db Move output to separate module 6 years ago
sharkdp be0a2d6048 Extended help texts for '--help' 6 years ago
sharkdp d1a1943998 Add -u and -n options, see #134 6 years ago
sharkdp 2a9f5a24ed Permissive error handling, closes #17 6 years ago
sharkdp a0ae089c4a Reset line number to 0 for new files 6 years ago
sharkdp 96cc391f2d Skip '--quit-if-one-screen' for --paging=always
closes #97
6 years ago
sharkdp 5e3b17e6f7 Fix code formatting 6 years ago
eth-p 486e6a19cd Fixed #124 6 years ago
Ezinwa Okpoechi 247dfbee83 Extract syntax finding to assets module 6 years ago
Ezinwa Okpoechi 12cb438aa4 Handle line with invalid UTF-8 6 years ago
sharkdp c826c2a438 Better error handling 6 years ago
sharkdp 145b99f01c Include syntaxes and themes in repository
This changes a few things:

- All syntaxes and themes are now stored (as submodules) under
  assets/syntaxes and assets/themes

- The default directories for syntaxes and themes are "syntaxes"
  and "themes" (used to be "syntax" and "themes")

- The "bat cache" command can now take a `--source <dir>` and
  `--target <dir>` option.

- The cached files have been renamed to "themes.bin" and "syntaxes.bin"
6 years ago
David Peter 2eee68599d
Merge pull request #102 from eth-p/master
Added text wrapping. (Fixes #54)
6 years ago
eth-p d569693dab Formatted with newer cargo fmt.
It should pass all the checks now.
6 years ago
eth-p 900f61032d
Fix #117 6 years ago
eth-p d0ca566979
Replace for_line and for_wrap with generate 6 years ago
eth-p a5a7dc14e4
Fix \r character being printed with wrapping enabled. 6 years ago
rleungx a5de77af4d address comment 6 years ago
rleungx 870ff7b538 sort the language listing 6 years ago
sharkdp 15b9acd12f Updates for new rustfmt 6 years ago
eth-p b327127f37
Split decorations into a separate file and optimized them a bit. 6 years ago
eth-p 9214a4a4f0
PR #102 Followed @sharkdp's suggestions 6 years ago
sharkdp fcecd97224 Add ansi_term import for Windows, see #107 6 years ago
eth-p 870b3c0daf
PR #102 Followed @BrainMaestro's suggestions
Also ran cargo fmt.
6 years ago
sharkdp b9c780c8c8 Ignore errors when clearing cache, closes #91 6 years ago
sharkdp ca865f9d26 Enable ANSI support on Windows 10 6 years ago
eth-p b4cfc9633c
Fix double spaces when outputting without wrapping. 6 years ago
eth-p d4b438b9d3
Fix padding, add --wrap argument, disable wrap for non-tty. (Fixed)
I'm not quite sure what was up with git on that last commit, but it's
all properly committed now.
6 years ago
eth-p cd26d403a3
Fix padding, add --wrap argument, disable wrap for non-tty.
Now bat(1) can be used like cat(1) again!
6 years ago
eth-p f95a23f948
Fix off-by-one error with text wrapping and --style grid 6 years ago
Ethan P bdd10b8bec
Merge branch 'master' into master 6 years ago
eth-p fc160b0dcd
PR #102 Review Changes
- Reformatted code.
- Removed leftover code.
- Removed leftover comments.
- Fixed compiling on Rust 1.24.0
6 years ago
sharkdp cb7b158172 Add bold, italic and underline font styles 6 years ago
eth-p fcc36b1f79
Forgot to add styling to the horizontal line. 6 years ago
eth-p 4e4110bf50
Added line wrapping. 6 years ago
Ryan Leung 22c8978fca add theme option (#95)
closes #89
6 years ago
Ezinwa Okpoechi f711fb5006 Split style to separate module 6 years ago
Ezinwa Okpoechi 64a9341b73 Split app to separate module 6 years ago
sharkdp ccf88fd5d8 Add and use --style=auto by default 6 years ago