It might be out of scope of the current repo, but might be nice to include this functionality, similar to Rust's [ignore](https://github.com/BurntSushi/ripgrep/tree/master/crates/ignore) crate.