v 0.3.9 Updated: 3 days, 5 hours ago
Human-friendly Grep
hgrep is a grep tool to search files with given pattern and print the matched code snippets with human-friendly syntax highlighting. In short, it's a fusion of bat and grep or other alternatives like ripgrep. This is similar to -C option of grep command, but hgrep focuses on human readable outputs. hgrep is useful to survey the matches with contexts around them. When some matches are near enough, hgrep prints the lines within one code snippet. Unlike grep -C, hgrep adopts some heuristics around blank lines to determine efficient number of context lines.
https://github.com/rhysd/hgrep
To install hgrep, paste this into the macOS Terminal after installing MacPorts
sudo port install hgrep
| Installations | 4 |
| Requested Installations | 4 |