kelleyma49 / PSFzf

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

Fix for issue #219, removing duplicate history items before searching #253

Closed omittones closed 4 months ago

omittones commented 4 months ago

Fix for issue #219. When there is many same entries in history file (example would be dir, git checkout master, etc.) searching would yield many same entries.

kelleyma49 commented 4 months ago

@omittones , thank you for the PR!

There were a couple of minor issues with your PR - mainly that history order is not kept as you run a sort command on the history. To keep this behavior, I've refactored the two history entry points (fh and CTRL+R) to share code so that Invoke-FuzzyHistory behaves almost the same as CTRL+R. This change is in #254 .

kelleyma49 commented 4 months ago

Closing this as #254 has been merged.