kelleyma49 / PSFzf

A PowerShell wrapper around the fuzzy finder fzf
MIT License
795 stars 36 forks source link

Any idea now to make ctr + r work from a terminal in vscode? #26

Open AlexisColes opened 5 years ago

AlexisColes commented 5 years ago

Thanks for this module, very cool.

Although would be even greater if I could get it to work in vs code though, any ideas?

kelleyma49 commented 5 years ago

Thanks!

Regarding it not working: I believe it doesn't work in the Integrated Console because PSReadline doesn't seem to work in the IC. If you create a new PowerShell window, PSReadline and PSFzf work.

I'll continue to investigate!

kelleyma49 commented 5 years ago

@AlexisColes, it looks as though this will be fixed in a future version of the PowerShell vscode extension, but I don't know the ETA.

Here are the relevant tickets: https://github.com/PowerShell/vscode-powershell/issues/535 https://github.com/PowerShell/vscode-powershell/issues/1793

The workaround is to split a window from the Integrate Console. CTRL+R will work in this new window:

PSFzfVSCodeTest

TylerLeonhardt commented 4 years ago

This is implemented already in the PowerShell Preview extension. Can you install that and give it a try?

mattcockrell commented 2 years ago

Using the PowerShell Preview extension, the chord doesn't work for me. I also have an issue with continuous completion using PSFzf. It exits the search and replaces the path with just the directory separator.