zoxide icon indicating copy to clipboard operation
zoxide copied to clipboard

zsh autocomplete is not working

Open AethanFoot opened this issue 1 year ago • 4 comments

I can't tell if this is an exact repeat or if it is slightly different.

zoxide 0.9.4
zsh 5.9 ~Using zinit
Arch Linux

I have checked through the init script and it appears to failing in calling the binding on line 92. I tested by manually binding the widget __zoxide_z_complete_helper to the home key, then if I setup when a completion should happen clear it and press my binding, it runs properly. So I am presuming the way printf works has changed in some way such that printing a keycode doesn't activate the key.

AethanFoot avatar Feb 27 '24 22:02 AethanFoot

same issue here

macOS Sonoma 14.2.1 23C71 arm64
zoxide 0.9.4
zsh 5.9 (x86_64-apple-darwin23.0)
zinit v3.13.1-4-g6511ca7f (darwin23.0_arm64)

wytsai7660 avatar Feb 28 '24 10:02 wytsai7660

Edit: I'm an idiot - I had "tidied" up my configs and removed autoload -Uz compinit && compinit from my .zshrc.

After restoring that at the top of my .zshrc completions work as expected.

jakenvac avatar Mar 08 '24 22:03 jakenvac

@AethanFoot can you post your fix that restored the functionality? And is it possible to bind it to the tab key? Thanks in advance

tabedzki avatar May 03 '24 16:05 tabedzki

Same problem, I have:

autoload -Uz compinit
compinit
eval "$(zoxide init zsh --cmd cd)"

At the end of .zshrc but when I click Tab when performing cd ... it does not show any direcory.

$ zsh --version
zsh 5.9 (x86_64-apple-darwin23.0)

$ zoxide --version
zoxide 0.9.4

RafaelMoreira1180778 avatar Jul 26 '24 08:07 RafaelMoreira1180778

Duplicate of https://github.com/ajeetdsouza/zoxide/issues/471 - please check my comment in that thread for some basic debugging steps: https://github.com/ajeetdsouza/zoxide/issues/471#issuecomment-2347425881

ajeetdsouza avatar Sep 13 '24 00:09 ajeetdsouza