From 9a858e490980d886d94ce0c316a71af3369e8808 Mon Sep 17 00:00:00 2001 From: Andrew Gallant Date: Fri, 8 May 2020 08:18:33 -0400 Subject: [PATCH] doc: add config file note for --type-{add,clear} This clarifies that persistence is possible via a configuration file. Fixes #1571 --- CHANGELOG.md | 2 ++ crates/core/app.rs | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) 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")