lancet Docs
Reference

lancet rg — Full ripgrep Parity Matrix

Complete flag-by-flag comparison verified byte-for-byte against ripgrep 15.2.

Verified byte-for-byte against ripgrep 15.2 across 68 edge-case fixtures in bench/rg_parity.py (Unicode case folding, CRLF, missing trailing newline, binary skips, -m with -C, --vimgrep, -L, --max-depth, --max-filesize) and Linux v6.12 full-tree queries.

Patterns & Matching#

FlagMeaningStatusNotes
-e, --regexp <PATTERN>Search pattern (repeatable)SupportedCombined with regex alternation
-f, --file <FILE>Read patterns per line (- stdin)Supported
-F, --fixed-stringsTreat patterns as literalsSupported
-i / -s / -SIgnore-case / sensitive / smart-caseSupportedLast wins; AST-aware -S (e.g. \W keeps insensitive)
-w, --word-regexpSurrounded by word boundariesSupportedMatches rg boundary behavior (-w '@x' works)
-x, --line-regexpMatch spans whole lineSupported
-v, --invert-matchLines not matching patternSupported
-U, --multiline-dotallMultiline match & . matches \nSupported
-P, --pcre2Lookarounds & backreferencesUnsupportedLinear-time Rust regex + sound HIR trigram lowering

Output & Formatting#

FlagMeaningStatusNotes
-o, -c, --count-matchesOnly matches / line count / match countSupported
-l, --files-without-match, -qMatching paths / non-matching / quietSupported
-m <N>, -A, -B, -CMax matching lines per file & contextSupportedTrailing context respects -m; emits -- separators
--passthru (alias --passthrough)Print matching & non-matching linesSupportedPrints non-matching files too; last of --passthru/-A/-B/-C wins
-n / -NShow / hide line numbersSupportedON by default even when piped
-H / -I, --column, --vimgrepFilename visibility, 1-based column, vimgrepSupportedLast of -H/-I wins
--json, -0, -r <TEXT>rg JSON Lines, NUL sep, $1/${name} replaceSupported
--color <WHEN>auto, always, ansi, neverSupportedauto colors TTYs only (NO_COLOR/TERM=dumb respected)
--sort, --no-headingSort / disable grouped headingsNo-opAlways path-sorted; never emits headings

File Traversal, Filtering & Lancet Extensions#

FlagMeaningStatusNotes
-g, --iglob, -t, -T, --type-listGlob & type filtersSupportedPositive globs override hidden/ignore like rg
--type-add <SPEC>NAME:GLOB or NAME:include:A,BSupportedApplies to -t, -T, --files, --type-list
-a, -u/-uu/-uuu, -., --no-ignoreBinary/hidden/ignore overridesSupported
-L, --max-depth, --max-filesizeFollow symlinks, depth limit, size (K/M/G)Supported--trust-index -L falls back to live walk
--files, -j/--threadsPrint searched paths, worker countSupported
--docsSearch PDF/Office/HWP/archive text in-processExtensionOff by default for strict rg parity
--no-index, --trust-index, --index-dirControl .lancet index modeExtensionDefault mode is fresh auto
--pre <CMD>External per-file preprocessorUnsupportedReplaced by in-process --docs
MIT OR Apache-2.0 · Single Rust binary View Markdown source on GitHub →