kelleyma49 / PSFzf

A PowerShell wrapper around the fuzzy finder fzf
MIT License
787 stars 34 forks source link

Missing partial history search functionality #82

Closed kylo252 closed 3 years ago

kylo252 commented 3 years ago

When using zsh you can invoke the history widget and it will use what you already have as input to match commands from history. While PSFzf doesn't care about what you already have written before invoking it ctrl+r.

A second point is that it doesn't replace the entire line but rather insert it at the cursor position. I suspect because you had always planned for this to be used on an empty line.

See an example here: lzFJZh4O5l

I tried to take a look at the code but sadly my experience with PowerShell scripting is very limited. I suspect you can probably re-use some of the logic in PSFzf.TabExpansion.ps1 specifically the part where you use GetBufferState().

P.S. thanks for the amazing work!

kelleyma49 commented 3 years ago

Good points. I will look at this when I have some free time. It shouldn't be too hard to support.