mirror of
https://github.com/FliegendeWurst/ripgrep-all.git
synced 2024-11-24 12:24:56 +00:00
custom adapters doc file (incomplete)
This commit is contained in:
parent
8070a94d84
commit
05e1822299
9
doc/Custom adapters.md
Normal file
9
doc/Custom adapters.md
Normal file
@ -0,0 +1,9 @@
|
||||
## Custom adapters
|
||||
|
||||
Since [version], you can specify custom adapters that invoke external preprocessing scripts in the config file.
|
||||
|
||||
[Todo: how]
|
||||
|
||||
[Todo: why not just use --pre yourself (copy/see https://github.com/phiresky/ripgrep-all/issues/60)]
|
||||
|
||||
If you think your adapter config is useful, you can share it by opening an issue with the title: "Custom adapter: xyz"
|
@ -94,7 +94,10 @@ impl PreprocCache for LmdbCache {
|
||||
|
||||
match cached {
|
||||
Some(rkv::Value::Blob(cached)) => {
|
||||
debug!("cache HIT, reading from cache");
|
||||
debug!(
|
||||
"cache HIT, reading {} (compressed) from cache",
|
||||
print_bytes(cached.len() as f64)
|
||||
);
|
||||
debug!("reading from cache took {}", print_dur(start));
|
||||
callback(cached)?;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user