A simple tool that’s similar to Unix locate, but produces concise and nicely formatted output.
Written in rust. Work in progress.
TODO example output
We currently use GNU find
to get the paths of all files. We exclude some paths, directory names, and filesystem types. However, there are probably situations where it won’t handle multiple filesystems gracefully.
It accepts one regex pattern. Unlike mlocate, it does not accept globs.
From mlocate:
- basename
- wholename
- ignorecase
- count
- limit
- database
- existing
- (symlink handling options)
Other:
- no-color
- no-collapse
BTreeMaps are nicely alphabetized, but slower. Is it faster to sort later? Use faster hash.
It’s fine as long as each user creates their own database.
Maybe use WalkDir crate instead. How does it handle different filesystems?
pretty-locate.toml