- Heuristic algorithm to choose the foreground color of matched regions was improved. Now hgrep generates multiple candidates for the foreground color, and chooses one of them looking at the color distances from the background color.
- Add new
Material
theme. It is a very popular low-contrast color theme. Try it byhgrep --theme Matrial
.
- Add new
Carbonight
theme. It is a minimal monotone color theme. Some people feel that too colorful outputs are hard to see. This color theme might fit to such people.
- Built-in grep allows K/M/G suffix at
--max-filesize
option to specify a file size easily.# Search files whose size is smaller than 10 MiB hgrep --maxfilesize 10M ...
- Built-in grep adds new flag
--invert-match
for invert matching. It shows lines that do not match the given pattern. - Built-in grep adds new flag
--one-file-system
. When enabled, the search will not cross file system boundaries relative to where it started from. - Built-in grep adds new short flag
-.
as alias of long flag--hidden
. - Built-in grep adds new flag
--no-unicode
which disables Unicode-aware search. - Built-in grep improves the output from
--type-list
. Now types are printed in bold texts which is easier to see. - Syntax assets were updated to the latest. They improve some syntax highlight detection (for example,
vimrc
for Vim files) and solve some highlighting issues. - Fix a broken pipe error when
hgrep
command is piped to a pager command likeless
. This happened whenless
exits earlier thanhgrep
command, for example, when you immediately quit a pager byq
without scrolling the output to the end. In the case,hgrep
still tried to output the result to stdout even if the pipe had already been closed and it caused a broken pipe error. In v0.2.1,hgrep
correctly ignores such broken pipe errors. - Fix
--no-wrap
deprecated flag was not removed at v0.2.0. Use--wrap
instead if you used the flag. - Fix checksum of downloaded package via Homebrew on arm64 macOS.
- Fix
--type-list
flag did not print types when a pattern argument is not given. - (Dev) Move
asset-builder
tool directory toassets/builder
. - (Dev) The script to update test snapshots is now 25x faster.
- (Dev) CI job to run clippy and rustfmt is now 6x faster.