Hacker News new | ask | show | jobs
by someguy101010 2713 days ago
Pretty cool! I'm gonna try it out, any plans to implement fuzzy search?
2 comments

I 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.

The C utility nnn (https://github.com/jarun/nnn) integrates fzy for this.