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) like 👨👩👧👦
syntect-printer
highlights matched regions in matched lines with a searched text color. Since match positions in matched lines are not included in output fromgrep -nH
, currently this is only supported by combination ofsyntect-printer
feature andripgrep
featuresyntect-printer
now uses light dashed lines for the separator of snippets:╶╶╶╶╶╶╶╶╶╶╶╶
- Add
--wrap MODE
option whereMODE
is one ofchar
ornever
(the default value ischar
). 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). See the commit for details