kelleyma49 / PSFzf

A PowerShell wrapper around the fuzzy finder fzf
MIT License
755 stars 35 forks source link

`Invoke-FuzzyZLocation` - Use `Set-ZLocation` Instead of `cd` #139

Open mattcargile opened 2 years ago

mattcargile commented 2 years ago

I think it would be ideal to loop in Set-ZLocation instead of only cd in this code. This way we get the Push-Location and removal of "bad" path code benefits. Then when we use the fz alias and z - it will appropriately pop back like native usage of z.

https://github.com/kelleyma49/PSFzf/blob/a5a7850e54b59c4d6e039af34607a8cd95b98d74/PSFzf.Functions.ps1#L201