Ethan P
20cdf5a998
lib: Fix no pager being used when PAGER and BAT_PAGER are unset ( #57 )
2021-04-13 12:08:37 -07:00
Ethan P
4f0b961d12
lib: Use 'less' as pager instead of 'bat'
2021-04-10 12:24:41 -07:00
Ethan P
20a0058014
lib: Fix issue when pagers read an empty argument as a file
2020-05-01 23:03:59 -07:00
Ethan P
d29915f141
Revert "lib: Remove unused function in pager lib"
...
This reverts commit 309a2169ba
.
2020-05-01 22:59:09 -07:00
Ethan P
309a2169ba
lib: Remove unused function in pager lib
2020-04-30 20:37:17 -07:00
Ethan P
e4d790ca91
lib: Fix regression in pager library
2020-04-30 20:37:01 -07:00
Ethan P
9f983891fd
lib: Fix behavior of PAGER environment var ( #24 )
2020-04-30 20:13:03 -07:00
Ethan P
7eac8b265d
Add tests for pager library
2020-04-06 13:01:39 -07:00
Ethan P
07c2cabc81
Fix small formatting and logic regressions
2020-04-01 12:47:21 -07:00
Éfrit
f4765bfa54
Fix most of the errors and warnings reported by shellcheck
2020-04-01 02:55:41 +02:00
Éfrit
73aafa56e1
Format with vs-shell-format
2020-04-01 02:55:41 +02:00
Ethan P
72b09b4416
Fix pager_name to print name of unknown pagers
2020-01-17 20:50:26 -08:00
Ethan P
63a9929592
Merge branch 'master' into search-pattern
2020-01-17 20:30:43 -08:00
Harrison McCullough
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
Ethan P
0fa396fbcb
Add pager_name function to pager.sh
2020-01-17 17:06:00 -08:00
Ethan P
9c10ef4871
Refactor common options into opt hooks
2019-09-25 14:48:21 -07:00
Ethan P
e71de135e6
Add experimental pager support to batgrep
2019-09-24 12:10:17 -07:00