Commit Graph

558 Commits

Author SHA1 Message Date
32d22f464d Improve --style help text, closes #1146 2020-09-20 21:00:04 +02:00
71b2089384 Code formatting 2020-09-20 20:47:21 +02:00
57aa88a13a Improve --file-name help text, closes #1109 2020-09-20 20:43:30 +02:00
f84aceec3d Fix unwrap error 2020-09-20 19:54:05 +02:00
83c7750656 Use unwrap 2020-09-20 12:14:21 +02:00
c477e23fe9 Handle file extension conflicts in --list-languages 2020-09-20 12:14:21 +02:00
31fb7087f1 Revert to previous commit 2020-09-20 12:14:21 +02:00
52d6701f8f Fix undesired behavior 2020-09-20 12:14:21 +02:00
f97634011e Handle file extension conflicts in --list-languages (#1076) 2020-09-20 12:14:21 +02:00
5df449bcf3 Remove unnecessary parenthesis 2020-09-14 11:24:14 +02:00
6017989c4c removed printlns, updated Changelog, updated man 2020-09-14 11:24:14 +02:00
d349974089 updated PR based on comments 2020-09-14 11:24:14 +02:00
ccdea6a429 remove println 2020-09-14 11:24:14 +02:00
fdf11326ef added additional alias for color=always when always-decorations flag is triggered 2020-09-14 11:24:14 +02:00
565a80305c Added new alias for 'decoration=always' 2020-09-14 11:24:14 +02:00
ad18f070ae Adds custom mapping for nginx and apache config files 2020-09-14 10:36:22 +02:00
cab5ddf6ae Fix Typo 2020-08-12 06:45:24 +02:00
f9d5e81f0e Add new theme: base16-256
Bat already has a base16 theme. The new base16-256 theme is for users
of base16-shell, who configure their terminal with a 256-color variant
of a base16 theme. These variants put some of the base16 colors in
elsewhere in the 256-color table to avoid clobbering bright color slots
(ansi codes 8 to 15) with colors that don't respect the ordinary meaning
of that slot (e.g. bright green in ordinary base16 is not green).

For more details, see https://github.com/chriskempson/base16-shell
2020-08-03 11:39:49 +02:00
2b3457e8d6 Update --help text for --color 2020-07-25 22:32:34 +02:00
99819087f1 Switch to "·" (U+00B7) Middle Dot from "•" (U+2022) Bullet 2020-07-09 08:15:04 +02:00
a0b89a68d9 Update generated config to reflect pager argument behaviour 2020-07-09 08:13:52 +02:00
c264f74771 Hide alias in help, update man and completions
A long alias doesn't make sense, since `--paging=never` already exists
2020-07-02 00:07:37 -07:00
f53ea60ed4 Merge remote-tracking branch 'sharkdp/master' 2020-07-02 00:04:55 -07:00
3a62e3d188 Merge pull request #1066 from gsomix/feature/1061-show-all-redirected
Enable non-printable characters for redirected output
2020-07-02 08:21:50 +02:00
3c5ce9f86c Enable non-printable chars for redirected output (#1061) 2020-07-02 09:36:58 +04:00
5fdeeabb44 Change to name no-paging, add long flag and alias 2020-07-01 21:35:45 -07:00
2575aae945 Add short flag for --paging=never 2020-06-30 12:19:22 -07:00
fc121f0c87 Defaults *.fs to F# 2020-06-26 21:42:05 -03:00
44deddbbfe Highlight pacman hooks as ini 2020-06-21 10:58:32 +02:00
aa8a2b1769 Highlight systemd files as ini 2020-06-21 10:58:32 +02:00
19aa878a08 Remove explicit type annotation 2020-06-03 19:44:41 +02:00
9f52012443 Prevent allocation of additional Strings 2020-06-03 19:44:41 +02:00
e57e9b6dbb Use 'or_insert_with' 2020-06-03 19:44:41 +02:00
74e8373e34 Return mappings as a slice 2020-06-03 19:44:41 +02:00
ec2722d465 Use 'if let' instead of 'match' 2020-06-03 19:44:41 +02:00
9e2ea5fdd4 Incorporating feedback 2020-06-03 19:44:41 +02:00
48b4a6a906 Adds a little logic to main to get other mappings from config 2020-06-03 19:44:41 +02:00
99226b745f Revert 9ed8db22c ('windows' pager process execution fix) based on PR feedback/owner request 2020-06-03 09:13:47 +02:00
a2c09b41bc Fix pager process execution under 'windows'
## [why]

For 'windows' platforms, directly spawning a process (eg, called PATHNAME) bypasses the
usual windows shell machinery for determining which process to execute. Specifically,
the extensions in PATHEXT will not be used to determine the final executable. So,
`PATHNAME.bat`, `PATHNAME.cmd`, ... will *not* be executed even if on they exist on the
PATH; and this is counter to the usual expectation of a Windows user. Additionally,
built-in commands, such as `echo` and `dir`, will never be accessible as they do not
have a PATH to execute and, so, will never be found.

To use the usual machinery, giving access to PATHNAME.bat and `echo`, execute the PATHNAME
using the windows shell, eg `cmd /d/c PATHNAME`. Note this may expose the constructed
command line to the windows shell quoting vagaries (sadly, that may be part of the price).

Following Windows standards, the ComSpec environment variable is used to determine which
shell to use, with a fallback to the "modern", built-in `cmd` shell.
2020-06-03 09:13:47 +02:00
9cc8e52512 Fix compiler warning for 'windows' tests (dead_code) 2020-06-03 09:13:47 +02:00
342cae2dc6 Change use of 'BatInput' to 'input::Input' 2020-05-29 22:13:10 +02:00
d2b26a5f1f Remove unnecessary '-> ()'s 2020-05-29 22:13:10 +02:00
9d08c0102e Replace Input::stdin_as_file with bat-application functions 2020-05-29 22:13:10 +02:00
a3357547ea Remove unused with_name for theme preview file 2020-05-29 22:13:10 +02:00
7a9decad70 Remove Input.as_file and add Input::stdin_as_file 2020-05-29 22:13:10 +02:00
a8d7141c4c Improve documentation for Input API 2020-05-29 22:13:10 +02:00
0f06d3b90d Reexport bat::pretty_printer::Input as bat::Input 2020-05-29 22:13:10 +02:00
589c94aa93 Fix regression with --list-themes and --language 2020-05-29 22:13:10 +02:00
798b742617 Refactor InputDescription API into Input API 2020-05-29 22:13:10 +02:00
11a72ab765 Fix a typo 2020-05-29 22:13:10 +02:00