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

When using z, recent directory suggestions are least used directories instead of most used #270

Closed
tomKPZ opened this issue May 22, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@tomKPZ
Copy link

tomKPZ commented May 22, 2021

  • zsh-autocomplete version: 7762811
  • Zsh version: zsh-5.8-0-g77d203f
  • Framework: Oh My Zsh
$ git -C ~zsh-autocomplete switch main  # Make sure you test with the `main` branch.
$ git -C ~zsh-autocomplete pull         # Update to the latest commit.
$ cd $(mktemp -d)                       # Create a temp dir and enter it.
$ unset _comp_dumpfile ZDOTDIR XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME
$ HOME=$PWD exec zsh -f       # Restart Zsh without config files in this dir.
% curl https://pastebin.com/raw/KLUFJePt > .z
% source /usr/share/oh-my-zsh/plugins/z/z.plugin.zsh
% source /path/to/zsh-autocomplete/zsh-autocomplete.plugin.zsh
% cd a

Upon typing cd a, the suggestions are the least used matching directories:

~/dev/external/arc-theme/   ~/dev/local/airbike/        ~/dev/external/auto-fu.zsh/  ~/.config/alacritty/

The most used matching directories are:

/home/tom/dev/local/arc-theme-base16
/home/tom/.config/aconfmgr
/home/tom/dev/external/alacritty
/home/tom/dev/forks/arc-theme
@tomKPZ tomKPZ added the bug Something isn't working label May 22, 2021
marlonrichert added a commit that referenced this issue May 23, 2021
@marlonrichert
Copy link
Owner

Fixed.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants