Releases: rhysd/hgrep
Releases · rhysd/hgrep
v0.3.9
- Release Arm Windows native binaries. For example, find
hgrep-v0.3.9-aarch64-pc-windows-msvc.zipin this release. - Update bat to v0.26.
- Improve syntax highlighting. The following languages are newly supported:
- VHDL
- Typst
- Idris 2
- Odin
- GDScript
- Debian source list
- Go Module files
- Associate more INI, JSON, Scala files.
- Add Catppuccin color theme family:
Catppuccin Frappe,Catppuccin Mocha,Catppuccin Macchiato,Catppuccin Latte. See the following screenshot for preview. - Add
--threads(-j) command line option to control the number of threads. This option is available when enablingsyntect-printerfeature orripgrepfeature. - Add
--ignore-filecommand line option to specify additional ignore files as well as.gitignoreand.rgignore. - Fix a build failure due to the change in v0.50.3 of
nu-ansi-termcrate.

v0.3.8
- Update
batcrate to v0.25.0. Update the syntax assets as well. - Update all the dependencies to the latest including unic-de-width v0.2 and terminfo v0.9.
- Associate
*.jsonc,*.jsonld, and*.geojsonfiles with JSON syntax. - Associate
*.mkdfiles with Markdown syntax. - Associate several
*.conffiles with proper syntaxes. - Replace
lazy_staticcrate withonce_cellcrate. - Fix unused trait warning when
syntect-printerfeature is disabled. - Build a release binary for aarch64 Linux on
ubuntu-24.04-armrunner instead of cross-compiling it onubuntu-latestrunner.
v0.3.7
- Support many text encodings. Previously only UTF-8 was supported. (#21)
- Add
--encoding(-E) command line option to specify file encoding of matched files. For example, the following command searches files encoded in Shift JIS.hgrep --encoding sjis pattern path/to/dir
- Detect file encodings from BOM. hgrep can automatically detect UTF-16LE, UTF-16BE, and UTF-8 if BOM exists in the file.
- Add
- Fix some syntax detection fails when BOM is inserted at the head of file. (#20)
- Improve performance by removing redundant
readsystem calls on detecting syntax. - Improve error messages when failing to read files.
v0.3.6
- Add
-u/--unrestrictedflags to built-in ripgrep (ripgrepfeature). This flag reduces the level of "smart" filtering by repeated uses (up to 2). A single flag-uis equivalent to--no-ignore. Two flags-uuare equivalent to--no-ignore --hidden. Unlike ripgrep, three flags-uuuare not supported since hgrep doesn't support--binaryflag.# Same as `hgrep --no-ignore pattern paths...` hgrep -u pattern paths... # Same as `hgrep --no-ignore --hidden pattern paths...` hgrep -uu pattern paths...
- Allow command line options to override their previous values. For example,
hgrep --theme ayu-dark --theme OneHalfDarkspecifiesOneHalfDarktheme, which previously caused a command line parse error. This new behavior is useful when you specify a default option inHGREP_DEFAULT_OPTSand want to override the default value in a command line.# Set the default theme value export HGREP_DEFAULT_OPTS='--theme ayu-dark' # v0.3.5 caused an error and v0.3.6 now allows this hgrep --theme OneHalfDark pattern paths...
- A Debian package (
.debfile) is now released in the release page. For example the package file for v0.3.6 can be downloaded from this link. The package can be installed viadpkgcommand and managed by APT package manager. It installs the man page and bash completion file automatically. Please see the document for more details. (#17) - Fix redundant imports warning reported from a nightly compiler.
v0.3.5
- Add
HGREP_DEFAULT_OPTSenvironment variable to set the default command line options. For example, the following configuration enablesayu-darktheme and background colors by default. See the document for more details.export HGREP_DEFAULT_OPTS='--theme ayu-dark --background'
- Detect the terminal color support from
TERMenvironment variable in addition toCOLORTERMenvironment variable. For example,xterm-256colorenables 256 colors support. See the document to know the logic of the color support detection. - Update the themes bundle to the latest.
- Update cargo dependencies including syntect v5.2.
v0.3.4
- Update crates related to ripgrep. This contains the big internal change of
regexcrate and changes for ripgrep v14. - Update bat to v0.24.
- Update the assets for syntax highlighting. This adds support for WGSL and some other improvements such as more file extensions support.
- Improve error handling of
batprinter. - Detect true color support using
windows-versioncrate on Windows. True color is supported by Windows 10.0.15063 or later. - Update other dependencies to the latest.
- Replace unmaintained
dirs-nextcrate withdirscrate. - Update
syntectcrate to v5.1.0.
- Replace unmaintained
v0.3.3
- Always enable 24-bit colors on Windows because 24-bit colors support is available since Windows 10.0.15063 (released on April 5, 2019).
- Add the document which explains how hgrep detects terminal color support.
- Support generating a completion script for Nushell by
--generate-completion-script nushell. - Set
codegen-unitsto 1 on release build. This made the binary size 1.14x smaller and improved the performance by 1.05x faster. - Update dependencies to the latest versions including large update of
regexcrate (v1.9.1). - Do not depend on
terminfocrate on Windows.
v0.3.2
- Update
batfrom 0.22 to 0.23. This improves performance on macOS when using-p bat. - Add support for Ada syntax highlighting
- Update dependencies
- Remove
remove_dir_allcrate to avoid CVE-2022-21658 - Replace unmaintained
ansi_termcrate withnu-ansi-termcrate - Update clap crates to generate better completion scripts and man page
- Remove
v0.3.1
- Fix parsing some command line options
- Fix
--globwas not repeatable - Fix
--ignore-caseand--smart-caseshould override each other - Fix
--line-regexpand--word-regexpshould override each other
- Fix
v0.3.0
- Update
syntectdependency to v5.0.0. Thanks to lazy loading, this change makes loading assets at startup about 70% faster. The small benchmark showedhgrepcommand was 1.7x faster when searching a small file with-p syntectcompared to v0.2.8. - Update
batdependency from 0.20 to 0.22. This introduces several improvements and fixes which were recently added to bat when using-p bat. - Add
--generate-man-pageflag to generate a manual page file. Save the output to yourmandirectory to show the help withmancommand. If you install hgrep with Homebrew, it will be automatically generated.hgrep --generate-man-page > /usr/local/share/man/man1/hgrep.1 man hgrep - Add several syntax highlighting for configuration files (Git configs, Fish history, SSH config, Nginx config, ...).
- Wrap the
--helpoutput looking at the terminal width. The output is more compact than v0.2.8. - Improve error handling when failing to enable ANSI color sequence support on Windows.