sharkdp
1dbb4ef683
Update minimum Rust version to 1.27
2018-10-07 15:34:37 +02:00
sharkdp
0502a3bd4a
Add first-line detection for all input types
...
closes #205
2018-10-07 15:34:37 +02:00
sharkdp
869cf6368c
Add possibility to get first line
2018-10-07 15:34:37 +02:00
sharkdp
078228deac
Add unit test for InputFileReader
2018-10-07 15:34:37 +02:00
sharkdp
e09d7dabb8
Move snapshot tests into separate module
2018-10-07 15:34:37 +02:00
sharkdp
6d1cc8c2c8
Move read_line functionality to inputfile module
2018-10-07 15:34:37 +02:00
sharkdp
87f021078e
Use dyn Trait for trait objects
2018-10-07 15:34:37 +02:00
sharkdp
d5b0502419
Move get_reader into inputfile module
2018-10-07 15:34:37 +02:00
sharkdp
860f3e9006
Move InputFile to separate module
2018-10-07 15:34:37 +02:00
sharkdp
1be346a038
Add 'plain' version of bat to the benchmarks
2018-10-07 10:57:08 +02:00
sharkdp
f9fd5e4851
Simplify -h help text
2018-10-07 10:43:39 +02:00
sharkdp
da09f3877b
Remove unnecessary scope
2018-10-07 10:09:10 +02:00
sharkdp
e30e1bab2e
Move theme-preview section into own paragraph
2018-10-06 21:12:12 +02:00
sharkdp
e1345cdc2a
Update VimL syntax
2018-10-05 18:44:51 +02:00
sharkdp
a2676ccc55
Workaround for #81
2018-10-04 11:09:41 +02:00
sharkdp
80da0dc619
run cargo fmt
2018-09-26 19:16:03 +02:00
sharkdp
64903bb858
Typo
2018-09-26 19:13:32 +02:00
sharkdp
3456ce1187
Add a small tutorial
2018-09-26 18:08:24 +02:00
sharkdp
886a5b3d24
Document the situation with less and scrolling
...
closes #312
closes #246
2018-09-26 18:03:46 +02:00
sharkdp
238482e5f3
Update syntax-set, fixes #314
2018-09-23 10:30:19 +02:00
sharkdp
6aa626f1c4
Document INI syntax modifications
2018-09-22 11:23:29 +02:00
sharkdp
20b02e72b3
Disable wrapping when --style is plain
...
closes #289
2018-09-18 21:31:56 +02:00
sharkdp
732750c274
Bump version
2018-09-12 22:03:48 +02:00
sharkdp
6b6baa3118
Update dependencies
2018-09-12 22:01:27 +02:00
sharkdp
54c434934e
Bump version, update assets
2018-09-12 22:01:01 +02:00
sharkdp
ad6e0a2581
Update man page
2018-09-12 22:00:28 +02:00
sharkdp
bd619db3ca
Mention BAT_STYLE in README.md
2018-09-12 21:57:54 +02:00
sharkdp
e098eb43a2
Do not show file header for directories
...
This also adds a better error message.
closes #292
2018-09-12 21:53:41 +02:00
sharkdp
63d32bc818
Merge remote-tracking branch 'upstream/master' into bat_style
2018-09-12 21:40:41 +02:00
sharkdp
dccf8d8221
Use a more streamlined version of style-component collection
2018-09-12 21:35:23 +02:00
sharkdp
97129ab9d8
Add PowerShell syntax, closes #306
2018-09-12 20:53:49 +02:00
sharkdp
a05494e9d9
Make tests more robust
2018-09-12 20:32:49 +02:00
sharkdp
84ac92efbb
Fix test for --style=plain
2018-09-12 20:32:33 +02:00
sharkdp
b4c6e412dc
Make generate_snapshots script more robust
2018-09-12 20:28:42 +02:00
sharkdp
3e21d69a92
Re-generate files again
2018-09-12 20:28:30 +02:00
sharkdp
b7690d4bb1
Undo change in sample.modified.rs
2018-09-12 20:28:21 +02:00
sharkdp
8b4abb03db
Run 'cargo fmt'
2018-09-08 09:52:21 +02:00
sharkdp
ba00caf9c3
Add Swift syntax
2018-09-05 21:56:49 +02:00
sharkdp
ac418ba21c
Add PureScript syntax
2018-09-05 21:50:16 +02:00
sharkdp
acde83af31
Add note about 'lesspipe', closes #242
2018-09-05 21:44:53 +02:00
sharkdp
021a68eb21
Add F# syntax, closes #284
2018-09-05 21:38:35 +02:00
sharkdp
f88eba6476
Add section concerning missing zlib-devel
...
closes #229
2018-09-05 21:13:43 +02:00
sharkdp
1d9e7ac4c2
Support "(/usr)/bin/less" as PAGER too
...
closes #271
2018-09-05 21:10:11 +02:00
sharkdp
d2b4766f92
Small README update
2018-09-04 08:25:24 +02:00
sharkdp
7b803a50af
Ignore enable_ansi_support errors
...
- Call `enable_ansi_support` only once.
- Ignore errors that appear when trying to enable ANSI support. This
will hopefully fix #252 and #264
2018-09-03 22:15:38 +02:00
sharkdp
67ec5fe2b7
Add OneHalf themes, closes #256
2018-09-03 22:12:41 +02:00
sharkdp
3447ed4def
Add CSV syntax, closes #254
2018-09-03 21:49:26 +02:00
sharkdp
ba4d5a2e7d
Bump version number
2018-09-01 00:30:43 +02:00
sharkdp
026273a05c
Enable ANSI support on Windows
2018-09-01 00:23:15 +02:00
sharkdp
8903b64830
Fix for Rust 1.26
2018-08-31 23:57:27 +02:00
sharkdp
194155f062
Fix relative-path computation for Windows
2018-08-31 23:57:27 +02:00
sharkdp
a6ff3b900d
Fix terminal width to 80 characters in tests
2018-08-31 23:57:27 +02:00
sharkdp
8a52bcf92d
Add hidden --terminal-width option
2018-08-31 23:57:27 +02:00
sharkdp
0b1535f63b
Split snapshot tests into individual tests
2018-08-31 23:57:27 +02:00
sharkdp
0a5b3eaf3e
Re-enable tests on windows
2018-08-31 23:57:27 +02:00
sharkdp
11294249f8
Add new key for AppVeyor
2018-08-31 23:57:27 +02:00
sharkdp
e3c990f11e
Respect color settings for list-themes and list-languages
2018-08-31 21:57:18 +02:00
sharkdp
90c7d0c365
Use stdout locks
2018-08-31 21:48:26 +02:00
sharkdp
acdea97e71
Add --plain
2018-08-28 23:37:49 +02:00
sharkdp
839e4ee611
Bump version
2018-08-28 23:21:35 +02:00
sharkdp
c7afcdebf8
Move theme_preview file to constant
2018-08-28 22:16:42 +02:00
sharkdp
08e6db1581
Add Troubleshooting section
...
see #220
2018-08-28 22:08:34 +02:00
sharkdp
4d08ecd828
Fix headline levels
2018-08-28 21:04:41 +02:00
sharkdp
28e1d0e613
Add development section to README
2018-08-28 21:03:03 +02:00
sharkdp
d11839ad03
Update install instructions
2018-08-28 20:55:15 +02:00
sharkdp
8cacd9b432
Include theme_preview file in binary
2018-08-28 20:24:13 +02:00
sharkdp
6f67444c99
Run cargo fmt
2018-08-28 20:24:13 +02:00
sharkdp
fd2b376ea0
Small style changes to --list-themes
2018-08-28 20:24:13 +02:00
sharkdp
cda54e4f61
Fix build for Rust 1.26
2018-08-28 20:24:13 +02:00
sharkdp
1088455702
Add syntaxes for Elm, Kotlin, Puppet, TypeScript
...
closes #215
closes #216
closes #217
closes #218
2018-08-28 19:36:31 +02:00
sharkdp
b6c59a5bd4
Add man page to releases
2018-08-27 23:10:14 +02:00
sharkdp
b682679776
Add initial version of man page, see #52
2018-08-27 22:57:47 +02:00
sharkdp
627181bcb6
Always call the syntax highlighter
2018-08-23 23:35:57 +02:00
sharkdp
226d9a573a
Add simple loop-through mode
...
Use a loop-through mode that simply copies input to output if a
non-interactive terminal is detected.
see #150
2018-08-23 23:13:24 +02:00
sharkdp
246cf79dbd
Split into Controller and Printer
2018-08-23 22:37:27 +02:00
sharkdp
ea955c734d
Refactoring, introduce Printer trait
2018-08-23 19:44:14 +02:00
sharkdp
6223ad6d52
Document Config struct
2018-08-22 22:36:59 +02:00
sharkdp
31a9335bd5
Document Config struct
2018-08-22 22:36:37 +02:00
sharkdp
9316f2a758
Major refactoring and cleanup
2018-08-22 22:29:12 +02:00
sharkdp
c884c3cc12
Re-order options in help texts
2018-08-22 19:34:30 +02:00
sharkdp
08850f0474
Update the --help text
2018-08-22 19:27:11 +02:00
sharkdp
052425b12f
Load customized themes in addition to defaults
...
- New themes in `$BAT_CONFIG_DIR/themes` are now loaded *in addition* to
the default themes (they may also override).
- The `Default.tmTheme` symlink is not necessary anymore.
This relates to #172
2018-08-20 21:39:21 +02:00
sharkdp
2df3305b94
Add new '--blank' option for 'bat cache --init'
...
closes #206
2018-08-20 21:34:08 +02:00
sharkdp
6882fc1512
Clean up help messages
2018-08-20 21:34:08 +02:00
sharkdp
2508323264
Extract grid and line-number color from theme
...
This changes the output color of the grid and the line numbers to use
the "gutter" foreground color defined in the Sublime `.tmTheme` files.
Sublime Text does the same.
Note: we could go one step further and also extract the "GitGutter"
colors from the themes. These could be used instead of red/green/yellow
to signify Git modifications. The problem is that they are quite a bit
harder to extract from the syntect `Theme` object.
closes #178
2018-08-19 12:32:35 +02:00
sharkdp
297afad337
Bump version
2018-08-19 12:31:35 +02:00
sharkdp
1dddce3aa1
Separate syntax set and theme set
...
This commit separates the handling of syntax sets and theme sets. It
also changes the way how new syntax definitions are loaded from `bat`'s
configuration folder. New syntax definitions are now loaded *in
addition* to the ones that are stored in the `bat` binary by default.
This fixes #172
2018-08-19 11:08:23 +02:00
sharkdp
76be0d3933
Add arm as a compile target
2018-08-19 09:50:24 +02:00
sharkdp
e5b8c4471a
Bump minimum required rust version
2018-08-18 21:30:12 +02:00
sharkdp
b191691767
Revert "replace trait object BufRead by generic"
...
This reverts commit 037861e588 .
2018-08-18 21:25:58 +02:00
sharkdp
5b421b455d
Update dependencies
2018-08-18 20:44:25 +02:00
sharkdp
a6d6c28723
Add documentation on new pager-customization
2018-08-18 20:22:11 +02:00
sharkdp
2966939e38
Update submodules
2018-08-18 19:30:35 +02:00
sharkdp
d179693d1d
Use BAT_PAGER and PAGER environment variables, closes #158
2018-08-18 18:48:22 +02:00
sharkdp
268577c6f9
Run 'cargo fmt'
2018-08-18 17:54:26 +02:00
sharkdp
94ccc646e8
Update README
2018-07-23 21:58:06 +02:00
sharkdp
0cc5d1dab6
Update error-chain to fix compiler warnings
2018-07-23 21:54:30 +02:00
sharkdp
28397b8f78
Always show a warning when theme is unknown
2018-07-23 21:51:49 +02:00
sharkdp
c899849101
Use map instead of and_then(..Some(..))
2018-07-23 21:51:49 +02:00
sharkdp
bf53b64125
Small style fix
2018-07-23 21:51:49 +02:00