Add Fuzzy Search to PowerShell

I’ve tried many text editors over time. One of the features I really like in Sublime Text and Visual Studio Code is the fuzzy search they implement in many places.

Here’s Visual Studio Code’s file picker in action.

I’ve wanted this feature in PowerShell for a while and I came across this post How is the fuzzy search algorithm in Sublime Text designed? and ported it to PowerShell.

Fuzzy Search in PowerShell

Here’s fuzzy search in action, applied to a list of strings, countries. It’s not limited to lists and can be applied to many other things in PowerShell.

One example

Get-Command | sfs invokepr

Grab the Script

Here’s my GitHub repo Select-FuzzySearch applies fuzzy searching to text.

Try it out and do a PR to improve it.