Commit Graph

342 Commits

Author SHA1 Message Date
Ethan P
5ac224bc87
build: A way to get data from build.sh 2023-06-15 16:15:41 -07:00
Ethan P
974073fc72
build: Add option to print source files 2023-06-15 16:15:40 -07:00
Ethan P
7aa73f8989
batdiff: Add '--staged' flag 2023-05-15 20:31:48 -07:00
Ethan P
7107e1603f
build: Add support for more alt executables 2023-05-15 19:50:24 -07:00
Ethan P
3e7041da7b
test: Update test framework 2023-05-15 19:31:29 -07:00
Ethan P
14f36f51b7
batman: Use self as MANPAGER
With certain implementations of `man`, the pager is called with execve
and naiive argument splitting instead of going through the shell.

This change uses the script as the pager itself, working around
the issue.
2023-05-15 19:03:00 -07:00
Ethan P
e609d1a2c5
prettybat: Fix short flags passed to bat
Fixes #87.
2023-03-24 11:01:56 -07:00
Ethan P
daf888f5ed
docs: Update install instructions for brew 2023-03-21 02:10:41 -07:00
Ethan P
bea36be397
Bump version to 2023.03.21 2023-03-21 01:58:48 -07:00
Ethan P
673dc6fd75
batdiff: Update docs to add BATDIFF_USE_DELTA 2023-03-21 01:58:48 -07:00
Ethan P
97006f0f09
batman: Allow spaces in manual sections 2023-03-21 01:58:48 -07:00
Ethan P
287398acbc
batman: Fix parsing manual pages in fzf preview 2023-03-21 01:58:48 -07:00
Ethan P
e53db161a7
batman: Only parse first manpage when selected 2023-03-21 01:58:48 -07:00
Ethan P
f07a22d536
batpipe: Fix SELF variable being wrong when compressed 2023-03-21 01:58:48 -07:00
Ethan P
ea604457ea
batpipe: Add BATPIPE_TERM_WIDTH 2023-03-21 01:58:47 -07:00
Ethan P
998e2ff1a9
batpipe: Fix opened-in-less detection 2023-03-21 01:58:47 -07:00
Ethan P
26111f9cee
ci: Fix installation of ripgrep for tests
The previous `find` command was grabbing the bash completions, rather
than the executable file. This should fix that.
2023-03-20 23:40:08 -07:00
Ethan P
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
Ethan P
428a78837d
ci: Fix errors with permissions 2023-03-20 23:04:43 -07:00
Ethan P
36786ba570
ci: Update action to fix warnings 2023-03-20 23:00:52 -07:00
Eoin Mcloughlin
e9daffde45 Fix bug where some man pages would fail to open
Some man page sections contain alphabetical characters (e.g. 3bsd,
3perl, 3ssl.) This fixes a bug where selection of such pages would
not open any man page.
2023-03-20 22:45:15 -07:00
Alex Wood
3917100c6e Add instructions for bat-extras on Fedora 2023-03-20 22:42:24 -07:00
Amory Meltzer ☀
a4237efffd batwatch docs: Fix link to entr project 2023-03-20 22:36:49 -07:00
Ethan P
38014ba72d
docs: Add install steps for Gentoo (@ran-dall)
Thanks for maintaining the package and writing up the install instructions, @ran-dall!
2022-07-30 17:03:42 -07:00
Ethan P
3e2e8df594
docs: Update README about manual files
Manual files are now generated and installed by default.
2022-07-30 17:01:03 -07:00
Ethan P
abda988cbd
build: Add manuals to '--install' 2022-07-29 16:51:59 -07:00
Ethan P
49f27efea2
docs: Update CI badge on README 2022-07-29 16:03:07 -07:00
Ethan P
2f2b33391a
ci: Remove CircleCI 2022-07-29 16:00:11 -07:00
Ethan P
90bb604d74
ci: Add GitHub Actions test workflow
This will eventually replace CircleCI.
2022-07-29 15:55:51 -07:00
Ethan P
ad2d788d6c
build: Add more '--no-*' options 2022-07-29 14:01:55 -07:00
Ethan P
10d976da55
developer: Add '.vscode' to gitignore 2022-07-29 14:01:34 -07:00
Ethan P
62b8f74df2
docs: Add Arch Linux install instructions to README 2022-07-28 13:47:44 -07:00
Ethan P
a011290c2f
Bump version to 2022.07.27 2022-07-27 13:30:27 -07:00
Trevor Leibert
20cc74e8b4 batman: Fix error when using fzf to pick manpages
- steps to reproduce error:
  - run batman with no arguments
  - pick any entry
  - script exits and man prints an error message similar to 'No manual entry for .k5identity  in section 5'

I speculated that this error was due to whitespace being attached to the second argument in the man call.
This commit fixes this error by piping the second argument through xargs to strip these spaces.

After applying this commit the script works as expected.
2022-07-21 19:37:56 -07:00
MithicSpirit
33c2c195dc batdiff: Fix line too long (>80 chars) 2022-07-21 19:37:08 -07:00
MithicSpirit
462df32d4c batdiff: Fix use of deprecated --hunk-style
Delta has deprecated --hunk-style in favor of its synonym
--hunk-header-decoration-style. See
https://github.com/dandavison/delta/releases/tag/0.12.0
2022-07-21 19:37:08 -07:00
Robert Irelan
69792e95da batgrep: handle -u flag to ripgrep 2022-07-21 19:35:55 -07:00
Konstantin Mikhailov
8ad00bd978 batgrep: add flag to disable separators between files 2021-08-29 13:49:25 -07:00
Ethan P
7803ecaba1
batpipe: Fix colors not showing up inside less 2021-08-21 16:19:17 -07:00
Ethan P
d8532bb35a
mdroff: Remove <br/> from output 2021-08-21 16:03:05 -07:00
Ethan P
ef0356a2d8
mdroff: Fix text being trimmed incorrectly 2021-08-21 16:02:48 -07:00
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
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
75d66fa352
batpipe: Fix incorrect colors in usage instructions 2021-04-10 12:31:52 -07:00
Ethan P
a4a5f5a5fd
lib: Add test for 'less' as pager instead of 'bat' 2021-04-10 12:26:54 -07:00
Ethan P
4f0b961d12
lib: Use 'less' as pager instead of 'bat' 2021-04-10 12:24:41 -07:00
Ethan P
cae57be87b
batgrep: Respect the BAT_STYLE environment variable (#54) 2021-04-09 01:12:36 -07:00