-
Notifications
You must be signed in to change notification settings - Fork 548
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zi no longer uses fzf for completion #626
Comments
This is exactly what I was curious about. I'm using powershell 7 in Windows 11. I upgraded winget, delete zoxide 0.9.2 and reinstalled both winget and choco version zoxide, uninstalled fzf v0.42 and force reinstalled and I could not make the fuzzy match work when using zi. Fzf has no problem when used directly. My profile.ps1 looks like this, which is a typical setting for a powershell user I guess. Invoke-Expression (& {
$hook = if ($PSVersionTable.PSVersion.Major -lt 6) { 'prompt' } else { 'pwd' }
(zoxide init --hook $hook powershell | Out-String)
}) |
I am also noticing this. fzf is on PATH but zi does not appear to use it. |
Zoxide 0.9.1 changed how I don't know if that was done to fix some other functionality, I am not well-versed in Rust. |
It was done to fix #514. I think a better fix would be to use fuzzy finding to match the directories, then rank them. For now, you can set the |
Hey @hrouault, you can use To help me understand this issue better, could someone share a screenshot of the kind of queries you are making that rely on fuzzy search? |
I tried Edit: after reading and thinking a bit more, I now see completion candidates. Please ignore my comment. |
Hi @ajeetdsouza, please find an example query with fuzzy search active below. Yes, without exact search I could get to both folders by querying In any case I have grown accustomed to fuzzy searching since I can't be bothered to write out the full name of folders most of the time :) |
Is a screenshot necessary? If I have a directory Maybe I'm fundamentally misunderstanding what Ultimately some directory paths are mentally easier to "type quickly" using letters that aren't a prefix of one of the path elements. |
I agree, fuzzy finding on the main z command (in addition to zi) would be incredibly useful |
Any updates on this thread? |
It has been one or two months that
zi
no longer completes usingfzf
.I installed zoxide (version 0.9.2) with
cargo
, andfzf
was installed through homebrew (version 0.42.0 by homebrew on OSX).zoxide is configured with "zoxide init fish | source".
Do you have any suggestions on how to debug this? I've tried to use the query command, which also does not use fzf.
Thanks
The text was updated successfully, but these errors were encountered: