Commit Graph

68 Commits

Author SHA1 Message Date
5011f0709e batgrep: Add support for ripgrep-all
To use `ripgrep-all`, add the `--rga` flag when running batgrep.
2024-02-12 01:18:11 -08:00
c26f22c768 fix typos in batgrep help 2023-09-13 10:41:31 -07:00
f47d9c4138 add a test 2023-06-15 16:54:45 -07:00
ea604457ea batpipe: Add BATPIPE_TERM_WIDTH 2023-03-21 01:58:47 -07:00
76906ca014 test: Add test to ensure ripgrep works
This is intended to make debugging CI issues easier in the future.
2023-03-20 23:29:36 -07:00
8ad00bd978 batgrep: add flag to disable separators between files 2021-08-29 13:49:25 -07:00
20cdf5a998 lib: Fix no pager being used when PAGER and BAT_PAGER are unset (#57) 2021-04-13 12:08:37 -07:00
a4a5f5a5fd lib: Add test for 'less' as pager instead of 'bat' 2021-04-10 12:26:54 -07:00
cae57be87b batgrep: Respect the BAT_STYLE environment variable (#54) 2021-04-09 01:12:36 -07:00
eee3156e8a test: Fix fish being incorrectly detected as installed 2021-04-07 20:38:35 -07:00
860638715a prettybat: Allow reading from pipe (#51) 2021-04-06 15:45:30 -07:00
650845dee4 lib: Fix 'getargs' setting an empty string when no args are left 2021-04-03 17:16:15 -07:00
e4e916c63b test: Update snapshots 2021-04-02 16:32:54 -07:00
93e2e4d048 lib: Fix 'getargs --append' adding an empty value to the array 2021-04-02 16:09:10 -07:00
47152d69c3 lib: Add '--append' mode to 'getargs' 2021-04-02 15:43:45 -07:00
9efc5362df lib: Add 'getargs' to 'lib_opt' 2021-04-02 15:38:26 -07:00
0cefe6efe1 ci: Prevent fish from creating tempfiles 2021-03-30 20:24:30 -07:00
dccceaf749 test: Add tests for batpipe 2021-03-30 19:26:08 -07:00
d8e7cd1d1b lib: Update copyright year to 2021 2021-03-24 15:59:43 -07:00
65a2f7561e lib: Update option parser to better support short options 2020-10-29 01:24:32 -07:00
bb94b33353 lib: Improve tests and docs for opt lib 2020-10-28 20:04:08 -07:00
4761b594a6 developer: Fix bat reading data from stdin during tests 2020-10-28 19:32:24 -07:00
40a66d934d batgrep: Add test for searching from stdin contents (#42) 2020-10-28 19:19:46 -07:00
e4999a7ffb lib: Add option parsing for short flags followed by number 2020-07-06 18:03:30 -07:00
69d9c38326 batwatch: small formatting changes 2020-07-06 17:43:37 -07:00
57be774f88 Fix gnu stat flag
- fix gnu stat formatting option from %z to %Z
- use read with a one second timeout instead of sleep, then quit if user
  responds with "q" (for testing, mostly)
- call pager_exec on entr and bat line instead of main so that --clear
  works
2020-07-06 17:36:03 -07:00
4c09718a46 batwatch changes to reveal a bug and add --help
- Add `-h` and `--help` flags to print out basic usage.
- Refactor determine_stat_variant so that it checks to make sure the
value from `stat` is a epoch timestamp, and exit noisily if it is not.
- Change `determine_watcher` to set the `OPT_WATCHER` global directory
directly instead of echoing it then being called from a subshell. There
was an errror that the subshell was obscuring.
- Add a test to reflect the bug.
2020-07-06 17:36:03 -07:00
e250ad9b29 test: Add --no-config to bat shimexec 2020-05-06 18:57:04 -07:00
f9b18f7e8e test: Fix bat shimexec 2020-05-06 18:56:27 -07:00
29fb251348 test: Update tests to shim stty instead of tput
Since we removed a dependency on tput, it makes more sense to shim the
command that we replaced it with.
2020-04-30 21:47:59 -07:00
9f983891fd lib: Fix behavior of PAGER environment var (#24) 2020-04-30 20:13:03 -07:00
d81456872b test: Add 'perf' suite to find out which libraries cost the most startup time 2020-04-27 19:08:06 -07:00
76afe39c96 test: Generate snapshot for batdiff 2020-04-27 18:51:36 -07:00
ab0f1b96d6 batdiff: Add batdiff script 2020-04-27 18:51:36 -07:00
e79e747e71 test: Avoid using 'head' 2020-04-27 01:22:22 -07:00
9a92579100 test: Add suite for DSL parsing library 2020-04-17 02:25:33 -07:00
c4af3eb637 Add tests for all programs --version 2020-04-08 03:11:56 -07:00
a3d2df5927 Update all scripts to use constants, add --version support 2020-04-08 03:00:04 -07:00
7eac8b265d Add tests for pager library 2020-04-06 13:01:39 -07:00
b72a495de1 Add skip for batgrep tests if ripgrep is not installed 2020-04-06 04:55:57 -07:00
06746d0e24 Add tests for lib/version.sh 2020-04-01 15:00:11 -07:00
b1ccd08034 Update snapshots 2020-04-01 12:51:29 -07:00
73aafa56e1 Format with vs-shell-format 2020-04-01 02:55:41 +02:00
30f5508bc3 Remove superfluous newline 2020-04-01 02:55:41 +02:00
6b57f3ff3c Fix invalid snapshot 2020-02-19 21:33:58 -08:00
ef9def267f Add executable shim for bat which enforces a theme 2020-02-19 21:33:40 -08:00
531dcd6c19 Add executable shim for tput to ensure consistent size 2020-02-19 21:10:56 -08:00
88e71bbb38 Update to use 'best' for testing 2020-02-19 20:49:20 -08:00
e0b9819859 Add relative symlink test 2020-01-21 09:58:26 -08:00
441eed7c52 Rename symlink tests 2020-01-21 09:41:24 -08:00