github rhysd/hgrep v0.2.1

latest releases: v0.3.7, v0.3.6, v0.3.5...
2 years ago
  • 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.
    • Example with Coldark-Dark theme. Please find the 'let' matched regions in the following screenshots. The foreground color is easier to see in v0.2.1 than v0.2.0.
      v0.2.0 v0.2.1
      example in v0.2.0 example in v0.2.1
  • Add new Material theme. It is a very popular low-contrast color theme. Try it by hgrep --theme Matrial.
    Material
  • 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.
    Carbonight
  • 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 like less. This happened when less exits earlier than hgrep command, for example, when you immediately quit a pager by q 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 to assets/builder.
  • (Dev) The script to update test snapshots is now 25x faster.
  • (Dev) CI job to run clippy and rustfmt is now 6x faster.

Don't miss a new hgrep release

NewReleases is sending notifications on new releases.