stinos / psfzflite Goto Github PK
View Code? Open in Web Editor NEWPowershell utilities for working with fzf
License: MIT License
Powershell utilities for working with fzf
License: MIT License
With PowerShell's Ctrl+R, matches to are more useful when typing something accurate since there is no fuzzy matching. With PsFzfLite typing "usb" for example doesn't return even 1 exact match until I scroll much further up due to all the fuzzy matches. Ideally I'd see exact matches first, and then any fuzzy matches. This might fall under configuring fzf rather than PsFzfLite (newbie to fzf, sorry!). Do you know how/if this can be done?
Thanks.
Set-PSReadLineKeyHandler -Key 'ctrl-r' -BriefDescription 'Fuzzy test' -ScriptBlock {fzf | Add-TextAtCursor}
In some terminals (e.g. wezterm
) a simple invocation of fzf
thru PSReadLine key binding not working.
PSFzf
somehow has it working by wrapping fzf
with System.Diagnostics.Process
.
I probably can borrow this method and using it with PsFzfLite
, but I wonder if there might be a simpler way to overcome this issue.
It way over my understanding (stdout/in, pipes, etc..), but I tried a different fuzzy tool which happen to work with wezterm
, called heatseeker
:
Set-PSReadLineKeyHandler -Key 'ctrl-b' -BriefDescription 'Fuzzy test' -ScriptBlock {fd --type f | hs | Add-TextAtCursor}
When Invoke-FuzzyGetCmdlet
invoke, its search input is pre-filled with the text "Invoke-FuzzyGetCmdlet". It should be empty to allow for immediate typing.
Thanks.
PsFzfLite c6ee2b0
fzf 0.37.0
PowerShell 7.3.2
Windows 11 Pro 22H2 10.0.22621
When invoking Invoke-FuzzyGetCmdlet
, choosing a cmdlet doesn't appear to do anything. The cmdlet command will be added to PowerShell's CLI as text and be run(?) but it doesn't produce any output (if it's being run at all), only a new line for issuing your next command.
May be related to #1.
PsFzfLite c6ee2b0
fzf 0.37.0
PowerShell 7.3.2
Windows 11 Pro 22H2 10.0.22621
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.