ripgrep recursively searches directories for a regex pattern while respecting your gitignore
Feature enhancements:
--regex-size-limit
and --dfa-size-limit
flags.Bug fixes:
Feature enhancements:
-o/--only-matching
flag.-0
short flag option for --null
.Bug fixes:
This is a new minor version release of ripgrep that includes one minor breaking change, bug fixes and several new features including support for text encodings other than UTF-8.
A notable accomplishment with respect to Rust is that ripgrep proper now only
contains a single unsafe
use (for accessing the contents of a memory map).
The breaking change is:
Feature enhancements:
-E/--encoding
flag was also added for latin-1, GBK, EUC-JP
and Shift_JIS, among others. The full list can be found here:
https://encoding.spec.whatwg.org/#concept-encoding-get
-M/--max-columns
flag that omits lines longer than the given
number of bytes. (Disabled by default!)--max-filesize
, was added for limiting searches to files with
a maximum file size.Bug fixes:
-u/--unrestricted
flags are aliases.$HOME/.config/git/ignore
and not
$HOME/git/ignore
.-g/--glob
flag.{foo,bar,quux}
) to regexes.-g/--glob
flag.This is a new minor version release of ripgrep that includes a couple very minor breaking changes, a few new features and lots of bug fixes.
This version of ripgrep upgrades its regex
dependency from 0.1
to 0.2
,
which includes a few minor syntax changes:
[:upper:]
would parse as the upper
POSIX character class. Now it parses
as the character class containing the characters :upper:
. The fix to this
change is to use [[:upper:]]
instead. Note that variants like
[[:upper:][:blank:]]
continue to work.[
must always be escaped inside a character class.&
, -
and ~
must be escaped if any one of them are
repeated consecutively. For example, [&]
, [\&]
, [\&\&]
, [&-&]
are all
equivalent while [&&]
is illegal. (The motivation for this and the prior
change is to provide a backwards compatible path for adding character class
set notation.)Feature enhancements:
--column
flag now implies --line-number
.--sort-files
flag.--path-separator
flag. Useful in cygwin.Bug fixes:
~
dependency on clap.globset
crate docs.-q/--quiet
was given.^C
handling from ripgrep.-g/--glob
clearer.memmap
dependency in grep
crate.-r/--replace
.Feature enhancements:
Bug fixes:
rg foo
and rg foo/
to have different behavior
when foo
was a symlink.-
couldn't be used with the
-e/--regexp
flag. (This resolves a regression that was introduced in
ripgrep 0.3.0.)Bug fixes:
--colors foo:none
correctly. Now it does.This is a new minor version release of ripgrep that includes two breaking changes with lots of bug fixes and some new features and performance improvements. Notably, if you had a problem with colors or piping on Windows before, then that should now be fixed in this release.
BREAKING CHANGES:
-e/--regexp
flag can no longer accept a pattern starting with a -
.
There are two work-arounds: rg -- -foo
and rg [-]foo
or rg -e [-]foo
will all search for the same -foo
pattern. The cause of this was the move
from Docopt to Clap
for argument parsing.
This may get fixed in the
future..Performance improvements:
Feature enhancements:
-f/--file
flag that causes ripgrep to read patterns from a file.--colors
flag that enables one to customize the colors used in
ripgrep's output.--files-without-match
flag that shows only file paths that contain
zero matches.Bug fixes:
TERM=screen.linux
.--color=always
will
emit colors regardless of the current environment.rg -h
. The full help content can be
accessed with rg --help
.--no-messages
was used.