head 1.24; access; symbols pkgsrc-2026Q2:1.24.0.6 pkgsrc-2026Q2-base:1.24 pkgsrc-2026Q1:1.24.0.4 pkgsrc-2026Q1-base:1.24 pkgsrc-2025Q4:1.24.0.2 pkgsrc-2025Q4-base:1.24 pkgsrc-2025Q3:1.23.0.4 pkgsrc-2025Q3-base:1.23 pkgsrc-2025Q2:1.23.0.2 pkgsrc-2025Q2-base:1.23 pkgsrc-2025Q1:1.22.0.2 pkgsrc-2025Q1-base:1.22 pkgsrc-2024Q4:1.21.0.6 pkgsrc-2024Q4-base:1.21 pkgsrc-2024Q3:1.21.0.4 pkgsrc-2024Q3-base:1.21 pkgsrc-2024Q2:1.21.0.2 pkgsrc-2024Q2-base:1.21 pkgsrc-2024Q1:1.18.0.2 pkgsrc-2024Q1-base:1.18 pkgsrc-2023Q4:1.17.0.4 pkgsrc-2023Q4-base:1.17 pkgsrc-2023Q3:1.17.0.2 pkgsrc-2023Q3-base:1.17 pkgsrc-2023Q2:1.16.0.2 pkgsrc-2023Q2-base:1.16 pkgsrc-2023Q1:1.14.0.2 pkgsrc-2023Q1-base:1.14 pkgsrc-2022Q4:1.12.0.4 pkgsrc-2022Q4-base:1.12 pkgsrc-2022Q3:1.12.0.2 pkgsrc-2022Q3-base:1.12 pkgsrc-2022Q2:1.11.0.2 pkgsrc-2022Q2-base:1.11 pkgsrc-2022Q1:1.8.0.2 pkgsrc-2022Q1-base:1.8 pkgsrc-2021Q4:1.7.0.2 pkgsrc-2021Q4-base:1.7; locks; strict; comment @# @; 1.24 date 2025.10.31.09.32.37; author pin; state Exp; branches; next 1.23; commitid gVd4oVnqyfEcHHgG; 1.23 date 2025.04.02.17.48.45; author pin; state Exp; branches; next 1.22; commitid lE3GNQeL8gyRfvPF; 1.22 date 2025.03.06.08.29.57; author pin; state Exp; branches; next 1.21; commitid 8eM3lgQfe3D02ZLF; 1.21 date 2024.04.22.06.54.07; author pin; state Exp; branches; next 1.20; commitid LvIscCWaQr6SI67F; 1.20 date 2024.04.08.10.42.37; author pin; state Exp; branches; next 1.19; commitid ozxwwsRUHspark5F; 1.19 date 2024.04.01.19.16.20; author pin; state Exp; branches; next 1.18; commitid 5hIJeWZsnJ9mvt4F; 1.18 date 2024.01.07.19.44.53; author pin; state Exp; branches; next 1.17; commitid 6zYOKy4E7V5yoyTE; 1.17 date 2023.07.23.19.08.09; author pin; state Exp; branches; next 1.16; commitid SyHojTMvKGvKAXxE; 1.16 date 2023.05.17.21.41.21; author wiz; state Exp; branches; next 1.15; commitid Mob6CwMhf0ONAmpE; 1.15 date 2023.04.01.15.58.34; author pin; state Exp; branches; next 1.14; commitid OlUeFh5i8ogUaqjE; 1.14 date 2023.01.31.12.33.07; author pin; state Exp; branches; next 1.13; commitid Mf3HQtyR2ko0YGbE; 1.13 date 2023.01.22.08.57.08; author pin; state Exp; branches; next 1.12; commitid MHv2FVk26FWO3waE; 1.12 date 2022.09.18.13.37.18; author he; state Exp; branches; next 1.11; commitid NfiZEhJmWB5CElUD; 1.11 date 2022.05.27.18.21.50; author pin; state Exp; branches; next 1.10; commitid pIp2Fc3E35XQTIFD; 1.10 date 2022.04.23.21.10.39; author pin; state Exp; branches; next 1.9; commitid sk0XPOqypV2xVmBD; 1.9 date 2022.04.17.22.56.22; author pin; state Exp; branches; next 1.8; commitid 2KK94Z5CGHKKHBAD; 1.8 date 2022.02.02.14.49.06; author pin; state Exp; branches; next 1.7; commitid sk3WebzkL374o3rD; 1.7 date 2021.12.12.09.57.46; author wiz; state Exp; branches; next 1.6; commitid yN6ljSYg7BNLrlkD; 1.6 date 2021.11.14.09.06.41; author pin; state Exp; branches; next 1.5; commitid zeFPSU19uQ224KgD; 1.5 date 2021.11.06.22.47.51; author pin; state Exp; branches; next 1.4; commitid MugUJAmAPQ6GRMfD; 1.4 date 2021.11.01.20.39.23; author pin; state Exp; branches; next 1.3; commitid 1nnwmCsleP3Aj8fD; 1.3 date 2021.10.27.18.49.43; author pin; state Exp; branches; next 1.2; commitid SVkP6uWppcSURteD; 1.2 date 2021.10.24.22.02.29; author pin; state Exp; branches; next 1.1; commitid hKB31i7gMyy127eD; 1.1 date 2021.10.20.12.27.49; author pin; state Exp; branches; next ; commitid XpsAw6VuLczLYxdD; desc @@ 1.24 log @textproc/hgrep: update to 0.3.9 - Release Arm Windows native binaries. For example, find hgrep-v0.3.9-aarch64-pc-windows-msvc.zip in 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 enabling syntect-printer feature or ripgrep feature. - Add --ignore-file command line option to specify additional ignore files as well as .gitignore and .rgignore. - Fix a build failure due to the change in v0.50.3 of nu-ansi-term crate. @ text @# $NetBSD: Makefile,v 1.23 2025/04/02 17:48:45 pin Exp $ DISTNAME= hgrep-0.3.9 CATEGORIES= textproc MASTER_SITES= ${MASTER_SITE_GITHUB:=rhysd/} GITHUB_TAG= v${PKGVERSION_NOREV} MAINTAINER= pkgsrc-users@@NetBSD.org HOMEPAGE= https://github.com/rhysd/hgrep/ COMMENT= Grep with human-friendly search output LICENSE= mit .include "cargo-depends.mk" CARGO_NO_DEFAULT_FEATURES= YES CARGO_FEATURES+= ripgrep syntect-printer .if ${MACHINE_ARCH} == "powerpc" # sneak in -latomic in the linker invocation BUILDLINK_TRANSFORM+= l:execinfo:execinfo:atomic .endif .include "../../mk/atomic64.mk" .include "../../lang/rust/cargo.mk" .include "../../mk/bsd.pkg.mk" @ 1.23 log @textproc/hgrep: reset maintainer @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.22 2025/03/06 08:29:57 pin Exp $ d3 1 a3 1 DISTNAME= hgrep-0.3.8 @ 1.22 log @textproc/hgrep: update to 0.3.8 - Update bat crate 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 *.geojson files with JSON syntax. - Associate *.mkd files with Markdown syntax. - Associate several *.conf files with proper syntaxes. - Replace lazy_static crate with once_cell crate. - Fix unused trait warning when syntect-printer feature is disabled. - Build a release binary for aarch64 Linux on ubuntu-24.04-arm runner instead of cross-compiling it on ubuntu-latest runner. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.21 2024/04/22 06:54:07 pin Exp $ d8 1 a8 1 MAINTAINER= pin@@NetBSD.org @ 1.21 log @textproc/hgrep: update to 0.3.7 v0.3.7 - 21 Apr 2024 - 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. - Fix some syntax detection fails when BOM is inserted at the head of file. (#20) - Improve performance by removing redundant read system calls on detecting syntax. - Improve error messages when failing to read files @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.20 2024/04/08 10:42:37 pin Exp $ d3 1 a3 1 DISTNAME= hgrep-0.3.7 @ 1.20 log @textproc/hgrep: update to 0.3.6 - Add -u/--unrestricted flags to built-in ripgrep (ripgrep feature). This flag reduces the level of "smart" filtering by repeated uses (up to 2). A single flag -u is equivalent to --no-ignore. Two flags -uu are equivalent to --no-ignore --hidden. Unlike ripgrep, three flags -uuu are not supported since hgrep doesn't support --binary flag. - Allow command line options to override their previous values. For example, hgrep --theme ayu-dark --theme OneHalfDark specifies OneHalfDark theme, which previously caused a command line parse error. This new behavior is useful when you specify a default option in HGREP_DEFAULT_OPTS and want to override the default value in a command line. - A Debian package (.deb file) 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 via dpkg command 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. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.19 2024/04/01 19:16:20 pin Exp $ d3 1 a3 1 DISTNAME= hgrep-0.3.6 @ 1.19 log @textproc/hgrep: update to 0.3.5 - Add HGREP_DEFAULT_OPTS environment variable to set the default command line options. For example, the following configuration enables ayu-dark theme 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 TERM environment variable in addition to COLORTERM environment variable. For example, xterm-256color enables 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. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.18 2024/01/07 19:44:53 pin Exp $ d3 1 a3 1 DISTNAME= hgrep-0.3.5 @ 1.18 log @textproc/hgrep: update to 0.3.4 v0.3.4 - 06 Jan 2024 - Update crates related to ripgrep. This contains the big internal change of regex crate 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 bat printer. - Detect true color support using windows-version crate on Windows. True color is supported by Windows 10.0.15063 or later. - Update other dependencies to the latest. - Replace unmaintained dirs-next crate with dirs crate. - Update syntect crate to v5.1.0. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.17 2023/07/23 19:08:09 pin Exp $ d3 1 a3 1 DISTNAME= hgrep-0.3.4 @ 1.17 log @textproc/hgrep: update to 0.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-units to 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 regex crate (v1.9.1). - Do not depend on terminfo crate on Windows. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.16 2023/05/17 21:41:21 wiz Exp $ d3 1 a3 1 DISTNAME= hgrep-0.3.3 @ 1.16 log @hgrep: use cargo.mk's install @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.15 2023/04/01 15:58:34 pin Exp $ d3 1 a3 1 DISTNAME= hgrep-0.3.2 @ 1.15 log @textproc/hgrep: update to 0.3.2 v0.3.2 - 31 Mar 2023 - Update bat from 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_all crate to avoid CVE-2022-21658 - Replace unmaintained ansi_term crate with nu-ansi-term crate - Update clap crates to generate better completion scripts and man page @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.14 2023/01/31 12:33:07 pin Exp $ a14 2 INSTALLATION_DIRS= bin a22 4 do-install: ${INSTALL_PROGRAM} ${WRKSRC}/target/release/hgrep \ ${DESTDIR}${PREFIX}/bin @ 1.14 log @textproc/hgrep: update to 0.3.1 v0.3.1 - 31 Jan 2023 Fix parsing some command line options - Fix --glob was not repeatable - Fix --ignore-case and --smart-case should override each other - Fix --line-regexp and --word-regexp should override each other @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.13 2023/01/22 08:57:08 pin Exp $ d3 1 a3 1 DISTNAME= hgrep-0.3.1 @ 1.13 log @textproc/hgrep: update to 0.3.0 v0.3.0 - 21 Jan 2023 - Update syntect dependency to v5.0.0. Thanks to lazy loading, this change makes loading assets at startup about 70% faster. The small benchmark showed hgrep command was 1.7x faster when searching a small file with -p syntect compared to v0.2.8. - Update bat dependency 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-page flag to generate a manual page file. Save the output to your man directory to show the help with man command. If you install hgrep with Homebrew, it will be automatically generated. - Add several syntax highlighting for configuration files (Git configs, Fish history, SSH config, Nginx config, ...). - Wrapp the --help output looking at the terminal width. The output is more compact than v0.2.8. - Improve error handling when failing to enable ANSI color sequences support on Windows. v0.2.8 - 10 Jan 2023 - Fix some command line boolean flags wrongly took an argument. (thanks @@Ryooooooga, #15) v0.2.7 - 04 Jan 2023 - Fix crash when reading from rg --vimgrep. Note that --vimgrep flag is not assumed by hgrep. Please use rg -nH. (#13) - Fix errors are not reported when they are caused by the second match or later. - Update dependencies to the latest. Especially migrating to clap v4 improved the --help output. - Migrate to Rust 2021 edition. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.12 2022/09/18 13:37:18 he Exp $ d3 1 a3 1 DISTNAME= hgrep-0.3.0 @ 1.12 log @textproc/hgrep: use mk/atomic64.h. Also sneak in -latomic via BUILDLINK_TRANSFORM on powerpc platforms, cannot use LDFLAGS since it's cargo which invokes cc as linker, and cargo apparently does not respect passed LDFLAGS. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.11 2022/05/27 18:21:50 pin Exp $ d3 1 a3 1 DISTNAME= hgrep-0.2.6 @ 1.11 log @textproc/hgrep: update to 0.2.6 v0.2.6 - 27 May 2022 -x86_64-unknown-linux-musl release binary now links libc statically (#10) -Replace rgb2ansi256 crate with ansi_colors crate @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.10 2022/04/23 21:10:39 pin Exp $ d20 5 d29 1 @ 1.10 log @textproc/hgrep: update to 0.2.5 -Add pre-built binary for AArch64 Linux. (no other changes) @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.9 2022/04/17 22:56:22 pin Exp $ d3 1 a3 1 DISTNAME= hgrep-0.2.5 @ 1.9 log @textproc/hgrep: update to 0.2.4 -Update bat crate dependency to v0.20.0. -Highlight clang-format configuration file. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.8 2022/02/02 14:49:06 pin Exp $ d3 1 a3 1 DISTNAME= hgrep-0.2.4 @ 1.8 log @textproc/hgrep: update to 0.2.3 -Update dependencies including bat v0.19 and clap v3 -Build binaries with the latest Rust compiler v1.58.1 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.7 2021/12/12 09:57:46 wiz Exp $ d3 1 a3 1 DISTNAME= hgrep-0.2.3 d21 2 a22 1 ${INSTALL_PROGRAM} ${WRKSRC}/target/release/hgrep ${DESTDIR}${PREFIX}/bin @ 1.7 log @hgrep: update to 0.2.2. Fix a build failure since new RC version of clap crate was released. Fix a dynamic link error of pcre2 library by linking the library statically. The error could happen when you installed Homebrew to non-default location on macOS (#6). Add --regex-size-limit option for built-in grep feature. Add --dfa-size-limit option for built-in grep feature. Use Rust compiler v1.57 to build binaries. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.6 2021/11/14 09:06:41 pin Exp $ d3 1 a3 1 DISTNAME= hgrep-0.2.2 @ 1.6 log @textproc/hgrep: update to 0.2.1 -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 by hgrep --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. -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. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.5 2021/11/06 22:47:51 pin Exp $ d3 1 a3 1 DISTNAME= hgrep-0.2.1 @ 1.5 log @textproc/hgrep: update to 0.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 between bat printer and syntect printer. -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-context was changed from 5 to 3. And the default value of --max-context was 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 syntect printer are now managed by ourselves (see below), syntect printer no longer looks at BAT_THEME and BAT_STYLE environment variables. To set the default theme and layout, use shell's command alias. See the document for more details. -syntect printer 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 with Nord theme was wrongly very light at v0.1.9. -Depend on ansi_term crate only when targeting Windows. It reduces number of dependencies when bat-printer is not enabled. -Improve a compile error when both feature syntect-printer and bat-printer are disabled. -Describe the exit status of hgrep command and versioning of this project in the readme document. -Fix rendering ansi theme was broken. The theme is for old terminals which only supports 16 colors. -Fix --first-only did not work with bat printer. -Fix the background color in file header when --background is specified @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.4 2021/11/01 20:39:23 pin Exp $ d3 1 a3 1 DISTNAME= hgrep-0.2.0 @ 1.4 log @textproc/hgrep: update to 0.1.9 -Support multiple regions highlighting. In v0.1.8, matched region highlighting was added but it only highlighted the first match in the line. Now all matched regions are highlighted. Note that region highlighting is available when using hgrep in combination of syntect-printer and ripgrep features. -Add --ascii-lines flag for terminals which does not support rendering unicode characters well. With this flag, unicode characters like '│' or '─' are replaced with ASCII characters '|' or '-'. This feature is only supported by syntect-printer (use -p syntect). -Add --first-only (-f) flag to show only the first snippet per file. This is useful when you want to look around the results. -Fallback to a minimap border color when no gutter background color is found. -Reduce number of redundant color codes output to stdout by about 21.5% in test cases. This also improves performance by about 6%. See the commit for details. -Performance of built-in grep was improved 20~80% when there are so many files to search. Previously the implementation collected all paths before searching a pattern in them, but with this improvement, the paths are now streamed. See the commit for details. -Use mimalloc as global allocator for better performance. This improves performance by 0~55% in our benchmarks. See the commit for details. -(Dev) Running unit tests is about 8.5x faster by caching assets for syntax highlighting. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.3 2021/10/27 18:49:43 pin Exp $ d3 1 a3 1 DISTNAME= hgrep-0.1.9 d17 3 @ 1.3 log @textproc/hgrep: update to 0.1.8 -syntect-printer supports text-wrapping. Longer lines than terminal width are now wrapped by default. It can handle wide characters including special emojis with zero-width joiner (U+200D) -syntect-printer highlights matched regions in matched lines with a searched text color. Since match positions in matched lines are not included in output from grep -nH, currently this is only supported by combination of syntect-printer feature and ripgrep feature -syntect-printer now uses light dashed lines for the separator of snippets -Add --wrap MODE option where MODE is one of char or never (the default value is char). More modes may be implemented in the future -In favor of --wrap option, --no-wrap flag is now deprecated and will be removed at v0.2.0. Use --wrap never instead -When building binaries for Windows, link C runtime statically. This avoid depending on vcruntime DLL at runtime -Critical section of syntect-printer was optimized. It slightly improved performance (around 4% faster in benchmarks) -Enable thin LTO for release build. It slightly improved performance (0~6% faster in benchmarks) @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.2 2021/10/24 22:02:29 pin Exp $ d3 1 a3 1 DISTNAME= hgrep-0.1.8 @ 1.2 log @textproc/hgrep: update to 0.1.7 v0.1.7 -Fix highlighting was broken on 256 colors terminals when using bat-printer. -bat-printer enables text wrapping by default as bat command does. --no-wrap can disable text wrapping. -bat-printer now looks at bat's cache directory when --custom-assets flag is given. This is useful if you use some custom syntax highlighting or theme. Note that this may not work fine with some versions of bat command. -bat-printer automatically uses 'ansi' theme for terminals which enable only 16 colors since other themes don't work. -Add --terminal-width option to give the width of terminal explicitly. This is useful when piping the results to other command like less. -Fix build failure due to lack of assets (#4). -Fix some newlines were missing when printing results with syntect-printer. -Use terminal_size crate directly instead of using console crate. It removes 3 dependencies when bat-printer feature is not enabled. -The document has been improved. Especially if you like a pager such as less, I recommend to check 'Set default command options' section. -(Dev) Several tests and benchmarks for syntect-printer were added. v0.1.6 -Add new experimental syntect-printer feature built with syntect library. -It is much faster than current printer built on bat (2x~4x faster). -Its output layout is optimized for our use case. For example, line numbers at matches are highlighted in different color. -It supports painting background colors with --background flag. This is useful when your favorite theme does not fit to your terminal's background color. -See bat printer v.s. syntect printer section for comparison of the two printers. -Add --printer (-p) flag to specify printer to use. It takes argument bat or syntect. -p syntect enables the new experimental printer -bat printer is now optional through bat-printer feature gate. Note that at least bat-printer or syntect-printer must be enabled. Both printers are enabled by default. See Feature flags section for more details. -hgrep is now available for NetBSD. See the instruction (thanks @@0323pin, #3) @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.1 2021/10/20 12:27:49 pin Exp $ d3 1 a3 1 DISTNAME= hgrep-0.1.7 @ 1.1 log @textproc/hgrep: import package 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. As an optional feature, hgrep has builtin grep implementation thanks to ripgrep as library. It's a subset of rg command. And it's faster when there are so many matches since everything is done in the same process. @ text @d1 1 a1 1 # $NetBSD$ d3 1 a3 1 DISTNAME= hgrep-0.1.5 @