kelleyma49 / PSFzf

A PowerShell wrapper around the fuzzy finder fzf
MIT License
819 stars 37 forks source link

Fix usage of Search-Everything for setting location #6

Closed stinos closed 7 years ago

stinos commented 7 years ago

Make Search-Everything only search for directories: this is faster and avoids errors when selecting a file from the matches since these cannot be cd'ed to anyway. Also add a directory argument for selecting the initial directory (this eventually uses Everything's path: so can be used to specify starting directory or partial match), making it more versatile as it allows starting the search in another directory than the current one and makes it a much faster alternative to Invoke-FuzzySetLocation. For a directory with about 10000 subdirectories, cde somedir is instant while fd somedir takes 10 seconds.