zoxide icon indicating copy to clipboard operation
zoxide copied to clipboard

`zi` does not enter interactive mode

Open moriartynz opened this issue 1 year ago • 5 comments

$ 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)

moriartynz avatar Feb 16 '24 05:02 moriartynz

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

Sycrosity avatar Feb 18 '24 17:02 Sycrosity

Same issue on:

  • MacOS: 14.3.1 (23D60) on ARM
  • ZSH
  • zoxide --version 0.9.3
  • fzf --version 0.46.1 (brew)

ShaanHossain avatar Feb 19 '24 17:02 ShaanHossain

@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.

ShaanHossain avatar Feb 19 '24 18:02 ShaanHossain

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.

Sycrosity avatar Feb 20 '24 18:02 Sycrosity

Hello

LongDeliver avatar Mar 03 '24 04:03 LongDeliver