kelleyma49 / PSFzf

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

Respect PsReadline's HistoryNoDuplicates setting #7

Closed stinos closed 7 years ago

stinos commented 7 years ago

If a user has chosen to ignore duplicates in the Psreadline history, apply this to the history shown by Invoke-FzfPsReadlineHandlerHistory as well for consistency since it will usually used in place of the original PsReadLine hisotroy search. Note that PsReadLine ignores duplicates in code, not in the file it saves, so we must do the same by filtering duplicates from the file.

Note I replaces some spaces with tabs in this function to keep things readable.

kelleyma49 commented 7 years ago

Thank you for change!

stinos commented 7 years ago

You're welcome, I really like PSFzf.