Add id reporting in imag-grep

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
Matthias Beyer 2019-10-26 20:30:38 +02:00
parent 57a8341b9c
commit 18ec736503

View file

@ -95,6 +95,7 @@ impl ImagApplication for ImagGrep {
.and_then_ok(|entry| {
if pattern.is_match(entry.get_content()) {
debug!("Matched: {}", entry.get_location());
rt.report_touched(entry.get_location())?;
show(&rt, &entry, &pattern, &opts, &mut count)
} else {
debug!("Not matched: {}", entry.get_location());