Skip to content
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 does not enter interactive mode #702

Open
moriartynz opened this issue Feb 16, 2024 · 5 comments
Open

zi does not enter interactive mode #702

moriartynz opened this issue Feb 16, 2024 · 5 comments

Comments

@moriartynz
Copy link

moriartynz commented Feb 16, 2024

$ 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
Copy link

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

@ShaanHossain
Copy link

Same issue on:

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

@ShaanHossain
Copy link

ShaanHossain commented Feb 19, 2024

@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
Copy link

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.

Repository owner deleted a comment from LongDeliver Feb 20, 2024
Repository owner deleted a comment from LongDeliver Feb 20, 2024
Repository owner deleted a comment from LongDeliver Feb 20, 2024
@LongDeliver
Copy link

Hello

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants