ajeetdsouza / zoxide

A smarter cd command. Supports all major shells.
MIT License
20.54k stars 523 forks source link

`zi` does not enter interactive mode #702

Open moriartynz opened 5 months ago

moriartynz commented 5 months ago
$ zi

Expected behaviour

Enter interactive mode

Actual behaviour

Changes pwd to a fixed directory in my filesystem. It does not enter interactive mode.

Troubleshooting information

Distro: arch Shell: bash

$ zoxide --version
zoxide 0.9.2
$ type __zoxide_zi
__zoxide_zi is a function
__zoxide_zi () 
{ 
    \builtin local result;
    result="$(\command zoxide query --interactive -- "$@")" && __zoxide_cd "${result}"
}
$ type zi
zi is a function
zi () 
{ 
    __zoxide_zi "$@"
}
$ fzf --version
0.46.1 (3c0a6304)
Sycrosity commented 4 months ago

Having the same issue on verson 0.9.3 (fzf v0.46.1) on macos, with ZSH.

ShaanHossain commented 4 months ago

Same issue on:

ShaanHossain commented 4 months ago

@moriartynz I tried zi as soon as I installed zoxide without any entries. I've been using zoxide for an hour now and have several entries. The zi command now works as expected.

Sycrosity commented 4 months ago

I tried zi as soon as I installed zoxide without any entries. I've been using zoxide for an hour now and have several entries. The zi command now works as expected.

It seems as though if you don't have at least two z entries, zi will just output nothing and changes to your home directory. Maybe there should be a message that appears if you don't have enough entries? rather than displaying nothing.

LongDeliver commented 4 months ago

Hello