PSFzf

A PowerShell wrapper around the fuzzy finder fzf (by kelleyma49)

PSFzf Alternatives

Similar projects and alternatives to PSFzf

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better PSFzf alternative or higher similarity.

PSFzf reviews and mentions

Posts with mentions or reviews of PSFzf. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-11-08.
  • Tools to achieve a 10x developer workflow on Windows
    11 projects | dev.to | 8 Nov 2023
    Sets up PSFzf: PowerShell wrapper for fzf, for fuzzy finding files and directories
  • GitHub – kelleyma49/PSFzf: A PowerShell wrapper around the fuzzy finder fzf
    1 project | news.ycombinator.com | 6 Nov 2022
  • 8 tips for setting up PowerShell on Windows
    8 projects | dev.to | 15 Apr 2022
    # To make ZLocation module work in every PowerShell instance. Import-Module ZLocation # PSFzf has undocumented option to use fd executable for # file and directory searching. This enables that option. Set-PsFzfOption -EnableFd:$true # Custom function to SetLocation, because PSFzf uses # Get-ChildItem which doesn't use fd and doesn't use # ignore files. Invoke-FuzzySetLocation is defined here # https://github.com/kelleyma49/PSFzf/blob/b97263a30addd9a2c84a8603382c92e4e6de0eeb/PSFzf.Functions.ps1#L142 # # This implementation is for setting FileSystem location # and implementation uses parts of # https://github.com/kelleyma49/PSFzf/blob/b97263a30addd9a2c84a8603382c92e4e6de0eeb/PSFzf.Base.ps1#L20 # https://github.com/kelleyma49/PSFzf/blob/b97263a30addd9a2c84a8603382c92e4e6de0eeb/PSFzf.Base.ps1#L35 function Invoke-FuzzySetLocation2() { param($Directory = $null) if ($null -eq $Directory) { $Directory = $PWD.Path } $result = $null try { # Color output from fd to fzf if running in Windows Terminal $script:RunningInWindowsTerminal = [bool]($env:WT_Session) if ($script:RunningInWindowsTerminal) { $script:DefaultFileSystemFdCmd = "fd.exe --color always . {0}" } else { $script:DefaultFileSystemFdCmd = "fd.exe . {0}" } # Wrap $Directory in quotes if there is space (to be passed in fd) if ($Directory.Contains(' ')) { $strDir = """$Directory""" } else { $strDir = $Directory } # Call fd to get directory list and pass to fzf Invoke-Expression (($script:DefaultFileSystemFdCmd -f '--type directory {0} --max-depth 1') -f $strDir) | Invoke-Fzf | ForEach-Object { $result = $_ } } catch { } if ($null -ne $result) { Set-Location $result } } # Show tips about newly added commands function Get-Tips { $tips = @( [pscustomobject]@{ Command = 'fcd' Description = 'navigate to subdirectory' }, [pscustomobject]@{ Command = 'ALT+C' Description = 'navigate to deep subdirectory' }, [pscustomobject]@{ Command = 'z' Description = 'ZLocation' }, [pscustomobject]@{ Command = 'fz' Description = 'ZLocation through fzf' }, [pscustomobject]@{ Command = 'fe' Description = 'fuzzy edit file' }, [pscustomobject]@{ Command = 'fh' Description = 'fuzzy invoke command from history' }, [pscustomobject]@{ Command = 'fkill' Description = 'fuzzy stop process' }, [pscustomobject]@{ Command = 'fd' Description = 'find https://github.com/sharkdp/fd#how-to-use' }, [pscustomobject]@{ Command = 'rg' Description = 'find in files https://github.com/BurntSushi/ripgrep/blob/master/GUIDE.md' } ) Write-Output $tips | Format-Table } # Define aliases to call fuzzy methods from PSFzf New-Alias -Scope Global -Name fcd -Value Invoke-FuzzySetLocation2 -ErrorAction Ignore New-Alias -Scope Global -Name fe -Value Invoke-FuzzyEdit -ErrorAction Ignore New-Alias -Scope Global -Name fh -Value Invoke-FuzzyHistory -ErrorAction Ignore New-Alias -Scope Global -Name fkill -Value Invoke-FuzzyKillProcess -ErrorAction Ignore New-Alias -Scope Global -Name fz -Value Invoke-FuzzyZLocation -ErrorAction Ignore
  • Windows Terminal Quake Mode
    11 projects | news.ycombinator.com | 30 Apr 2021
    Are you using PSFzf or something else? https://github.com/kelleyma49/PSFzf
  • PsFzf Open File / Open Directory
    1 project | /r/PowerShell | 6 Mar 2021
    kelleyma49/PSFzf: A PowerShell wrapper around the fuzzy finder fzf — https://github.com/kelleyma49/PSFzf
  • A note from our sponsor - WorkOS
    workos.com | 23 Apr 2024
    The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning. Learn more →

Stats

Basic PSFzf repo stats
5
712
6.8
2 months ago

kelleyma49/PSFzf is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of PSFzf is PowerShell.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com