v0.2.0
- BREAKING The default printer is now
syntect. It has the following benefits. I tested it for several weeks and it seems stable. See the section in README to know the difference betweenbatprinter andsyntectprinter.- Performance is 2x to 4x faster
- Output layout and highlighting are optimized; line number highlight and matched regions at matched line
- Support background color with
--background - Color themes are optimized
- BREAKING The default value of
--min-contextwas changed from 5 to 3. And the default value of--max-contextwas changed from 10 to 6. This is because it turned out that the previous default values were too large for surveying the search results. - BREAKING Since themes for
syntectprinter are now managed by ourselves (see below),syntectprinter no longer looks atBAT_THEMEandBAT_STYLEenvironment variables. To set the default theme and layout, use shell's command alias. See the document for more details. syntectprinter now renders more accurate colors by considering alpha values of colors by blending them with background colors. In v0.1.9, alpha values were simply ignored. For example, gutter color withNordtheme was wrongly very light at v0.1.9.- Manage our own theme set to optimize themes for our use cases. Comparing with bat's theme assets, some themes are removed whose line highlight color and/or searched text color are obscure or hard to see. And some new famous themes are added. The theme assets are managed in
assetsdirectory. - Output of
--list-themesis much improved. It shows sample outputs per theme so that users can know what they look like. Options related to outputs like--backgroundand--no-gridare reflected to the sample outputs. At v0.1.9, only theme names were printed so users needed to try the themes by themselves.

- Linux x86_64 musl target was added to pre-built releases. Find
hgrep-*-x86_64-unknown-linux-musl.zipin released assets. Note that this binary is not tested. (#5) - Depend on
ansi_termcrate only when targeting Windows. It reduces number of dependencies whenbat-printeris not enabled. - Improve a compile error when both feature
syntect-printerandbat-printerare disabled. - Describe the exit status of
hgrepcommand and versioning of this project in the readme document. - Fix rendering
ansitheme was broken. The theme is for old terminals which only supports 16 colors. - Fix
--first-onlydid not work withbatprinter. - Fix the background color in file header when
--backgroundis specified






