mirror of
https://github.com/FliegendeWurst/ripgrep-all.git
synced 2024-11-09 14:30:37 +00:00
In readme and built-in help, add cache location on macOS and Windows.
This commit is contained in:
parent
52690418cc
commit
5bef602958
12
README.md
12
README.md
@ -174,8 +174,11 @@ The following adapters are disabled by default, and can be enabled using '--rga-
|
|||||||
|
|
||||||
> Disable caching of results
|
> Disable caching of results
|
||||||
>
|
>
|
||||||
> By default, rga caches the extracted text to a database in
|
> By default, rga caches the extracted text, if it is small enough,
|
||||||
> \~/.cache/rga if it is small enough. This way, repeated searches on
|
> to a database in `~/Library/Caches/rga` on macOS,
|
||||||
|
> `~/.cache/rga` (on other Unixes),
|
||||||
|
> or `C:\Users\username\AppData\Local\rga` (on Windows).
|
||||||
|
> This way, repeated searches on
|
||||||
> the same set of files will be much faster. If you pass this flag, all
|
> the same set of files will be much faster. If you pass this flag, all
|
||||||
> caching will be disabled.
|
> caching will be disabled.
|
||||||
|
|
||||||
@ -234,4 +237,7 @@ export RUST_LOG=debug
|
|||||||
export RUST_BACKTRACE=1
|
export RUST_BACKTRACE=1
|
||||||
```
|
```
|
||||||
|
|
||||||
Also rember to disable caching with `--rga-no-cache` or clear the cache in `~/.cache/rga` to debug the adapters.
|
Also remember to disable caching with `--rga-no-cache` or clear the cache
|
||||||
|
(`~/Library/Caches/rga` on macOS, `~/.cache/rga` on other Unixes,
|
||||||
|
or `C:\Users\username\AppData\Local\rga` on Windows)
|
||||||
|
to debug the adapters.
|
||||||
|
@ -40,7 +40,10 @@ pub struct RgaArgs {
|
|||||||
#[structopt(long = "--rga-no-cache")]
|
#[structopt(long = "--rga-no-cache")]
|
||||||
/// Disable caching of results
|
/// Disable caching of results
|
||||||
///
|
///
|
||||||
/// By default, rga caches the extracted text to a database in ~/.cache/rga if it is small enough.
|
/// By default, rga caches the extracted text, if it is small enough,
|
||||||
|
/// to a database in ~/Library/Caches/rga on macOS,
|
||||||
|
/// ~/.cache/rga on other Unixes,
|
||||||
|
/// or C:\Users\username\AppData\Local\rga` on Windows.
|
||||||
/// This way, repeated searches on the same set of files will be much faster.
|
/// This way, repeated searches on the same set of files will be much faster.
|
||||||
/// If you pass this flag, all caching will be disabled.
|
/// If you pass this flag, all caching will be disabled.
|
||||||
pub no_cache: bool,
|
pub no_cache: bool,
|
||||||
|
Loading…
Reference in New Issue
Block a user