Commit Graph

105 Commits

Author SHA1 Message Date
Ethan P
33e0c168e0
batgrep: Add support for '--' 2021-08-21 15:48:14 -07:00
Ethan P
82ac5c4391
batman: If fzf is installed, use batman to search through man pages 2021-08-21 15:22:29 -07:00
Ethan P
f280553fb1
batman: Only set grid style if BAT_STYLE is not defined 2021-08-21 15:19:14 -07:00
Ethan P
d989b0bfde
batwatch: Buffer to reduce flickering from redraw 2021-08-11 01:15:46 -07:00
Ethan P
75d66fa352
batpipe: Fix incorrect colors in usage instructions 2021-04-10 12:31:52 -07:00
Ethan P
cae57be87b
batgrep: Respect the BAT_STYLE environment variable (#54) 2021-04-09 01:12:36 -07:00
Ethan P
a526c7927b
batgrep: Fix to work with rg 11 (#53) 2021-04-08 14:17:13 -07:00
Ethan P
54db67408e
prettybat: Add support for SVG formatting using prettier 2021-04-06 15:57:54 -07:00
Ethan P
860638715a
prettybat: Allow reading from pipe (#51) 2021-04-06 15:45:30 -07:00
Ethan P
6497bc04a0
batpipe: Change the install commands to enable color automatically 2021-04-04 14:22:39 -07:00
Ethan P
672b4814ec
batpipe: Fix incorrect bash install commands 2021-04-04 14:20:11 -07:00
Ethan P
2aff613888
batpipe: Format compressed files with 'bat' 2021-04-04 14:14:16 -07:00
Ethan P
82b444f93b
batpipe: Replace 'bat_if_not_bat' with a smarter 'bat' function 2021-04-04 14:13:16 -07:00
Ethan P
27c68692f1
batwatch: Show the watched command in bat's header 2021-04-02 16:32:02 -07:00
Ethan P
70c7509343
batwatch: Disable bat's pager (#23) 2021-04-02 16:26:45 -07:00
Ethan P
164142dd43
batwatch: Add mode for watching command output 2021-04-02 16:17:07 -07:00
Ethan P
5f5a5e87a9
batpipe: Highlight unsupported files using bat 2021-03-30 19:25:51 -07:00
Ethan P
5708706436
batpipe: Fix error when external viewers folder exists 2021-03-30 18:51:34 -07:00
Ethan P
2b2db2b506
batpipe: Add support for exa 2021-03-24 20:23:58 -07:00
Ethan P
dafd2addc0
batpipe: Add support for *.xz files 2021-03-24 20:13:27 -07:00
Ethan P
0d2e999b2a
batpipe: Fix viewing listings in zip files 2021-03-24 20:09:04 -07:00
Ethan P
988780bce9
batpipe: Add support for *.gz files 2021-03-24 20:08:16 -07:00
Ethan P
9072ab47a1
batpipe: Change viewer_*_supports arg order 2021-03-24 20:04:33 -07:00
Ethan P
1734cedbd9
batpipe: Add zip viewer 2021-03-24 20:01:12 -07:00
Ethan P
2a28cbff3a
batpipe: Improve batpipe when used both inside and outside less 2021-03-24 19:59:35 -07:00
Ethan P
fa32c5875d
batpipe: Fix incorrect detection of inner paths 2021-03-24 19:49:28 -07:00
Ethan P
55eaf189dc
batpipe: Add better support for less 2021-03-24 19:34:41 -07:00
Ethan P
b85c7c43e3
batpipe: Add batpipe script 2021-03-24 18:35:56 -07:00
Ethan P
b275282e36
prettybat: Add checks to ensure that files exist 2020-12-16 17:15:35 -08:00
Jeremy Paige
165fc69d34 Add python formatter black to prettybat 2020-12-16 16:57:59 -08:00
Ethan P
7549ffd986
batgrep: Clean up handling of RIPGREP_CONFIG_PATH 2020-10-29 01:28:26 -07:00
Ethan P
65a2f7561e
lib: Update option parser to better support short options 2020-10-29 01:24:32 -07:00
Ethan P
0f6529a0d8
batdiff: Make --all default behavior for no arguments 2020-10-28 19:40:35 -07:00
Ethan P
a6a1e55522
batgrep: Remove hardcoded reference to ripgrep executable 2020-10-28 19:19:51 -07:00
Ethan P
b5cb20cb23
batgrep: Allow searching through STDIN (#42) 2020-10-28 18:10:17 -07:00
Ethan P
5f5023d056
batgrep: Add simple parsing of RIPGREP_CONFIG_PATH. 2020-10-02 20:09:00 -07:00
Ethan P
dc50f28480
batgrep: Prevent RIPGREP_CONFIG_PATH context from breaking batgrep. 2020-10-02 19:58:41 -07:00
Ethan P
fa58888298
bat-modules: Add --modules-file option 2020-07-06 18:15:01 -07:00
Ethan P
df5b237273
batgrep: Add short flag number parsing for context options 2020-07-06 18:03:47 -07:00
Ethan P
38f56c1bc7
batwatch: Split hook_help into a lib script 2020-07-06 17:49:29 -07:00
Ethan P
69d9c38326
batwatch: small formatting changes 2020-07-06 17:43:37 -07:00
Alissa Huskey
990a1dc397 Minor refactor
- Use read to split on space between name and flags instead of paramater
  expansion.
2020-07-06 17:36:03 -07:00
Alissa Huskey
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
Alissa Huskey
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
Ethan P
149f47fa66
Fix typo 2020-07-01 18:23:40 -07:00
Ethan P
6052d6ee17
batdiff/lib: Fix hardcoded git executable name (#35)
Thanks to @lilyball for pointing it out.
2020-06-17 17:53:20 -07:00
Ethan P
d5fa65132d
lib: Remove opt_hooks.sh and edit scripts to source lib files directly 2020-04-30 22:11:36 -07:00
Ethan P
4ee7451532
batman: Forward paging options to bat instead of handling them 2020-04-30 20:21:08 -07:00
Ethan P
b2bc772ad1 batgrep/batwatch: Update to use terminal width opt hook instead of tput cols 2020-04-27 18:51:36 -07:00
Ethan P
ab0f1b96d6 batdiff: Add batdiff script 2020-04-27 18:51:36 -07:00