diff --git a/CHANGELOG.md b/CHANGELOG.md index 3414bbd9..e89dff67 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ Bug fixes: * [BUG #1537](https://github.com/BurntSushi/ripgrep/issues/1537): Fix match bug caused by inner literal optimization. +* [BUG #1571](https://github.com/BurntSushi/ripgrep/issues/1571): + Add note about configuration files in `--type-{add,clear}` docs. * [BUG #1573](https://github.com/BurntSushi/ripgrep/issues/1573): Fix incorrect `--count-matches` output when using look-around. diff --git a/crates/core/app.rs b/crates/core/app.rs index a2c7c3d6..5aa5760e 100644 --- a/crates/core/app.rs +++ b/crates/core/app.rs @@ -2877,7 +2877,7 @@ time. Multiple --type-add flags can be provided. Unless --type-clear is used, globs are added to any existing globs defined inside of ripgrep. Note that this MUST be passed to every invocation of ripgrep. Type settings are -NOT persisted. +NOT persisted. See CONFIGURATION FILES for a workaround. Example: @@ -2915,7 +2915,7 @@ Clear the file type globs previously defined for TYPE. This only clears the default type definitions that are found inside of ripgrep. Note that this MUST be passed to every invocation of ripgrep. Type settings are -NOT persisted. +NOT persisted. See CONFIGURATION FILES for a workaround. " ); let arg = RGArg::flag("type-clear", "TYPE")