Commit Graph

328 Commits

Author SHA1 Message Date
eth-p
7cdcdbb31d
Updated snapshots. 2018-09-10 19:20:09 -07:00
eth-p
9159341714
Modified snapshot tests to support tab expansion.
This changes how the files are named (to allow for snapshots that aren't
directly related to the --style argument) and fixes the
generate_snapshots.py script to work with the latest version of bat.

Three new tests are also introduced:
- tabs_4 - Tab expansion with a width of 4.
- tabs_8 - Tab expansion with a width of 8.
- tabs_passthrough - No tab expansion.
2018-09-10 19:19:43 -07:00
eth-p
b23ff24ebc
Added tab expansion preprocessing step. 2018-09-10 18:11:59 -07:00
sharkdp
8b4abb03db Run 'cargo fmt' 2018-09-08 09:52:21 +02:00
eth-p
375cf76e15 Formatted for newest rustfmt. 2018-09-08 09:52:21 +02:00
eth-p
1a4acc435e Typo 2018-09-08 09:52:21 +02:00
eth-p
d8030626f8 Automatically disable wrapping when style is plain. 2018-09-08 09:52:21 +02:00
eth-p
fb61aa4f60 Wrapping disabled when --plain is used. (#289) 2018-09-08 09:52:21 +02:00
Aankhen
76df41fa97 src/output.rs: Handle less in a portable way. 2018-09-07 21:47:31 +02:00
Miguel Madrid Mencía
97efd75cee Add Crystal syntax 2018-09-05 23:45:09 +02:00
Shreyansh Chouhan
53d0c1deca Can read files named "cache" now, cache subcommand working too (#275)
Now if a cache file exists in the current directory, and the user passes
no arguments to the cache command, the cache file would be displayed.
If however the user uses cache command with arguments, the cache command
would be executed as normal regardless of whether the file cache exists
in the current directory or not.

Though now there won't be an error message displayed if the user uses the cache sub command without arguments in any directory that contains a file named cache.
2018-09-05 23:22:12 +02:00
David Peter
155179a07a
Update alternatives.md 2018-09-05 22:01:42 +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
David Peter
566aab3b05
Merge pull request #279 from tobenna/add-jsx-syntax
Add support for JSX in javascript and typescript
2018-09-05 21:33:50 +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
David Peter
80ae2ecbf8
Merge branch 'master' into add-jsx-syntax 2018-09-05 20:51:03 +02:00
David Peter
96d4492d27
Merge pull request #282 from tobenna/support-cabal-syntax
Syntax highlighting for .cabal
2018-09-05 20:44:25 +02:00
David Peter
c90f0b8e21
Merge branch 'master' into support-cabal-syntax 2018-09-05 20:43:50 +02:00
David Peter
4b866ab6af
Merge branch 'master' into add-jsx-syntax 2018-09-05 20:36:31 +02:00
Tobenna
2dbd91e543 Add Dart syntax 2018-09-05 20:33:16 +02:00
Tobenna Ndu
785da3d9df Add support for cabal syntax 2018-09-05 14:42:27 +01:00
Tobenna
d455cb7c32 Add support for JSX in javascript and typescript 2018-09-05 08:49:33 +01:00
sharkdp
d2b4766f92 Small README update 2018-09-04 08:25:24 +02:00
Roald
5cf92b4f94 Windows download with scoop 2018-09-04 08:23:38 +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
David Peter
532fb921a6
Update README.md 2018-09-01 00:59:30 +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
anykao
35a1236ad0 Update tests.rs 2018-08-31 23:57:27 +02:00
anykao
af8da50c2c Update appveyor.yml 2018-08-31 23:57:27 +02:00
anykao
649d1e3df2 Update appveyor.yml 2018-08-31 23:57:27 +02:00
anykao
199cfd4519 Update appveyor.yml 2018-08-31 23:57:27 +02:00
David Peter
c7cce0752b Add AppVeyor badge 2018-08-31 23:57:27 +02:00
anykao
3a89486189 Create before_deploy.ps1 2018-08-31 23:57:27 +02:00
anykao
720a2fb7a5 Create appveyor.yml 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