zoxide
zoxide copied to clipboard
`zi` does not enter interactive mode
$ 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)
Having the same issue on verson 0.9.3 (fzf v0.46.1) on macos, with ZSH.
Same issue on:
- MacOS: 14.3.1 (23D60) on ARM
- ZSH
- zoxide --version
0.9.3
- fzf --version
0.46.1 (brew)
@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.
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.
Hello