3b71837174
Merge branch 'master' into fix/2731_plain_override
2024-10-30 13:06:13 +01:00
8d82402d74
Merge branch 'master' into feature/binary_as_text
2024-10-30 12:46:11 +01:00
649fb05c58
Bump nix from 0.26.4 to 0.29
2024-10-25 09:16:21 +02:00
e667415def
Add tests against issue #2731
2024-10-18 12:13:41 +02:00
5be9d19500
Reinforce tests for --list-themes
2024-08-25 11:10:25 +02:00
7cc231b82b
Test --binary=as-text
2024-08-18 10:05:43 +02:00
180a77ee99
Add integration tests for merging styles
...
A huge thanks to @einfachIrgendwer0815 for helping me make sure
these tests work under the MSRV CI job.
2024-07-30 21:22:00 -07:00
9e8176b1c6
Add --strip-ansi=auto
option
...
When using `auto`, escape sequences will be stripped unless printing
plain text.
2024-06-17 18:27:33 -07:00
70ff93d238
Add --strip-ansi
option
2024-06-16 16:49:07 -07:00
23ec433167
display which theme is the default one in basic output
2024-04-19 11:44:47 +02:00
d5bd4aa93f
display which theme is the default one in colored output ( #2838 )
2024-04-14 15:54:52 +02:00
4c85483486
Inline format!
args wherever possible
2024-02-25 00:38:11 +01:00
83b00bc653
Rename --squeeze
to --squeeze-blank
2024-02-24 14:02:27 +01:00
2323aa0def
Add tests for --squeeze
2024-02-24 13:51:44 +01:00
c3f2ddf509
Merge branch 'master' into 2783-setting-terminal-title
2024-02-11 22:53:48 +00:00
8a51172b11
simplified basic_set_terminal_title
2024-02-11 22:43:07 +00:00
1023399c5e
Remove hyperlink when wrapping lines
2024-02-09 22:09:39 -08:00
6549e26f5d
Re-emit hyperlinks when wrapping lines
2024-02-09 22:09:39 -08:00
2d46d54ae3
Add tests for re-emitting SGR sequences on wrap
2024-02-09 22:09:39 -08:00
3d04699710
Add regression test for #2541
...
More specifically, the test ensures that OSC sequences don't end up
wrapping the line.
2024-02-09 22:09:39 -08:00
7ce010d9ed
Using hypens instead of underscores for set-terminal-title command
2024-02-08 21:33:03 +00:00
a8d07333e9
updated integration_tests.rs
2024-01-30 19:29:28 +00:00
22254936a2
ran cargo fmt
2024-01-27 14:32:34 +00:00
f6d76e0104
added integration test for setting terminal title
2024-01-27 14:31:28 +00:00
c911829771
fixed failing tests
2024-01-27 14:23:24 +00:00
1b88267320
Ensure test succeeds by adding flag
2024-01-21 19:48:26 +01:00
45ee2dc4c7
fix: Wrap file name in header
2024-01-21 19:48:26 +01:00
3b0ade9cb8
slightly changed set terminal command to match docs & broke print line into multiple variables
2023-12-31 22:24:44 +00:00
907af9e35f
updated tests since terminal title is set conditionally
2023-12-18 17:27:51 +00:00
fd84e4f49f
fixed all but two failing tests. Last two tests are erroring because of IO circle detected error
2023-12-11 19:09:48 +00:00
3d87b25b19
Add unicode/caret replacements for all control characters ( #2712 )
2023-10-20 19:41:48 +02:00
319c675f3e
Fix a double-close
in the no_args_doesnt_break
test.
...
Fix the `no_args_doesnt_break` test to avoid calling `from_raw_fd` twice
on the same raw file descriptor, as that cause the file descriptor to be
closed twice, which means it could accidentally close some unrelated newly
created file descriptor.
2023-09-29 18:27:27 +02:00
5a240f36b9
Case insensitive --map-syntax
( #2650 )
...
Co-authored-by: Nicolas AMBRY <nicolas.ambry@atos.net >
2023-09-14 16:04:43 +02:00
e2bf85e749
Make -pp override --paging and vice versa when passed as a later argument. ( #2660 )
2023-09-14 05:45:46 +02:00
fe73010a5e
ignore failing test
2023-09-08 06:25:20 +02:00
433176ab54
require LESSOPEN to have exactly one %s
2023-09-08 06:25:20 +02:00
b56021ffa9
make LESSOPEN support opt-in
2023-09-08 06:25:20 +02:00
d6e11b59e7
#2592 : Fixes unit tests dependent on echo on windows ( #2602 )
...
Co-authored-by: Boy van Duuren <boy.van.duuren@rabobank.nl >
2023-09-08 06:18:25 +02:00
e32ad0b048
Add $LESSOPEN
and $LESSCLOSE
support ( #2444 )
2023-09-02 08:48:26 +02:00
4b04f901fe
Add test for BAT_PAGING
2023-09-01 17:59:41 +02:00
8f99a78cf1
Print non-printable characters using caret notation ( #2443 )
...
When the new flag is set, non-printable characters are printed using caret notation.
2023-03-14 22:21:30 +01:00
4e34b362f8
Require changes to -h
and --help
to be blessed
...
From now on, any changes to the help texts will be visible in PR diffs,
which will make it very easy to review, and very hard to accidentally
miss changes to help texts.
If a contributor makes a change to help texts, the `cargo test` failure
text they will see contains instructions on how to update the blessed
help texts:
error: expect test failed
--> ../doc/long-help.txt
You can update all `expect!` tests by running:
env UPDATE_EXPECT=1 cargo test
In short, to update blessed help texts, one simply does
env UPDATE_EXPECT=1 cargo test
Do not run the tests if the `git` feature is missing, since then
`--diff` will be missing from `--help`. And do not run the tests on
Windows, because then the help text will contain the term `.exe`.
Move man page step to after cargo doc step so that the man page exists
when we look for it.
2022-12-30 09:59:52 +01:00
e39178b101
Fix bat cache --clear
not clearing the --target
dir if specified
2022-11-19 18:00:37 +08:00
1224403aa1
Update comments in tests/integration_tests.rs
2022-11-02 17:09:15 -04:00
1a07baf5f2
Update tests/integration_tests.rs
...
Co-authored-by: David Peter <sharkdp@users.noreply.github.com >
2022-11-02 16:48:51 -04:00
bad2292950
Add tests for --theme > BAT_THEME > config
2022-11-02 16:48:51 -04:00
e773b48135
Fix cache subcommand and add tests
...
Treat the cache subcommand differently from --no-config:
For --no-config, insert args from selected environment variables
For cache, don't insert args
2022-11-02 16:48:51 -04:00
76aad7c74f
Improve correctness and add more tests
2022-11-02 16:48:50 -04:00
36ccc6a31e
Allow env vars to override config but not args
2022-11-02 16:48:50 -04:00
bf114f5844
Added helper function for -S flag tests
2022-10-17 14:43:02 -07:00