3 ms·
Pretty cool! I'm gonna try it out, any plans to implement fuzzy search?
by someguy101010 8y ago
Pretty cool! I'm gonna try it out, any plans to implement fuzzy search?
- 2211 8y agoI can very easily add optional support for either 'fzf' or another fuzzy matcher. I'll take a look at implementing this in pure bash but I doubt it'd match the speed of a dedicated tool in this instance. The current search is just bash creating an array using a glob 'list=(/path/to/current_dir/"$search_query")'. bash gets a lot slower when you start adding more levels to the search (2 or more deep). I'll get to implementing fuzzy searching algorithms first and we'll see what steps I take from there. Who knows? It might work fast enough in pure bash for file searching.
- apjana 8y agoThe C utility nnn (https://github.com/jarun/nnn https://github.com/jarun/nnn) integrates fzy for this.