Commit Graph

26 Commits

Author SHA1 Message Date
04912ff8fd Add include for constants.sh from print.sh 2020-04-08 03:49:57 -07:00
03971fe64e Split hooks into separate files to reduce compiled size 2020-04-08 03:19:58 -07:00
a91ee96e6a Update scripts to use $EXECUTABLE_BAT instead of $BAT 2020-04-08 03:15:02 -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
47c15dd264 Fix regression where --color would no longer work by itself 2020-04-01 13:40:57 -07:00
94ca32b0db opt_hooks.sh: Add checks for invalid --color and --paging 2020-04-01 12:59:30 -07:00
07c2cabc81 Fix small formatting and logic regressions 2020-04-01 12:47:21 -07:00
f4765bfa54 Fix most of the errors and warnings reported by shellcheck 2020-04-01 02:55:41 +02:00
73aafa56e1 Format with vs-shell-format 2020-04-01 02:55:41 +02:00
72b09b4416 Fix pager_name to print name of unknown pagers 2020-01-17 20:50:26 -08:00
63a9929592 Merge branch 'master' into search-pattern 2020-01-17 20:30:43 -08:00
0cda564175 Make changes according to feedback
Most of these are simple changes. I added an `is_pager_less` and a `get_pager`
function to `pager.sh`. In order for this function to be available for use
inside `pager.sh`, I had to define the functions before setting defaults.

The `is_pager_less` function is then used for the `--search-pattern` to see if
the `$SCRIPT_PAGER` supports the `--search-pattern` flag. Right now, the only
supported pager is `less`.
2020-01-17 23:09:59 -05:00
0fa396fbcb Add pager_name function to pager.sh 2020-01-17 17:06:00 -08:00
0309ceb054 Fix inline docs for version.sh lib 2019-09-26 15:37:11 -07:00
a472f1c651 Refactor common messages into functions 2019-09-25 15:59:54 -07:00
9c10ef4871 Refactor common options into opt hooks 2019-09-25 14:48:21 -07:00
6e8959b1d6 Fix $PROGRAM variable not taking the program name 2019-09-25 13:16:29 -07:00
e71de135e6 Add experimental pager support to batgrep 2019-09-24 12:10:17 -07:00
8b5d2384b2 Fix incorrect detection of --key=value arguments 2019-09-08 19:36:54 -07:00
469a6fc65f Fix regression introduced in 5749d9e 2019-09-08 19:24:10 -07:00
3d4a0b8381 Add support for building with alternate executable names 2019-09-08 17:43:29 -07:00
5749d9ea2d Fix lib/opt.sh not working on Bash 5 (#2) 2019-09-08 11:16:00 -07:00
b09f38190c Updated batgrep to use the new bat 0.12 "snip" component 2019-09-06 18:05:19 -07:00
6f3cc53bda Fixed libraries 2019-06-21 16:10:39 -07:00
248d7077f4 Initial commit. 2019-06-19 14:15:10 -07:00