Hi all!
Thanks for providing this super useful tool at first!
Here is my case, after updating this plugin, tab autocomplete doesn't work for me anymore, which is a similar scenario as #25. Even though I disabled COMPLETION_WAITING_DOTS in zshrc, the problem still persists.
My zshrc is
# If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/usr/local/bin:$PATH
# oh-my-zsh
export ZSH=$HOME/.oh-my-zsh
# Anaconda3
export PATH=$HOME/anaconda3/bin:$PATH
# nvm
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
# GPG key
export GPG_TTY=$(tty)
# Theme
ZSH_THEME="robbyrussell"
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
# Uncomment the following line to use hyphen-insensitive completion. Case
# sensitive completion must be off. _ and - will be interchangeable.
# HYPHEN_INSENSITIVE="true"
# Uncomment the following line to disable bi-weekly auto-update checks.
# DISABLE_AUTO_UPDATE="true"
# Uncomment the following line to change how often to auto-update (in days).
# export UPDATE_ZSH_DAYS=13
# Uncomment the following line to disable colors in ls.
# DISABLE_LS_COLORS="true"
# Uncomment the following line to disable auto-setting terminal title.
DISABLE_AUTO_TITLE="true"
# Uncomment the following line to enable command auto-correction.
ENABLE_CORRECTION="true"
# Uncomment the following line to display red dots whilst waiting for completion.
# COMPLETION_WAITING_DOTS="true"
# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
DISABLE_UNTRACKED_FILES_DIRTY="true"
# Uncomment the following line if you want to change the command execution time
# stamp shown in the history command output.
# You can set one of the optional three formats:
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# or set a custom format using the strftime function format specifications,
# see 'man strftime' for details.
# HIST_STAMPS="mm/dd/yyyy"
# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(
git
zsh-syntax-highlighting
zsh-autosuggestions
)
source $ZSH/oh-my-zsh.sh
# User configuration
# export MANPATH="/usr/local/man:$MANPATH"
# You may need to manually set your language environment
# export LANG=en_US.UTF-8
# Preferred editor for local and remote sessions
# if [[ -n $SSH_CONNECTION ]]; then
# export EDITOR='vim'
# else
# export EDITOR='mvim'
# fi
# Compilation flags
# export ARCHFLAGS="-arch x86_64"
# ssh
# export SSH_KEY_PATH="~/.ssh/rsa_id"
# Alias
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
Does anyone have ideas of how to fix it?
What is the output of echo $ZSH_AUTOSUGGEST_STRATEGY? It may not have anything to do with your issue, but call it a hunch.
It's default.
Ok, and you don't get any error messages or console output at all?
No. After the update, I only notice that autosuggestion is not working.
Ok. Well in that case, sorry, I don't have a solution for you. I was having problems after the update, but they don't seem to be related. You could try run export ZSH_AUTOSUGGEST_STRATEGY="history". You never know, did the trick for me.
Unfortunately, this doesn't work for me. But thank you for the help!
See my comment here: https://github.com/zsh-users/zsh-autosuggestions/issues/395#issuecomment-442689873
I don't know what it has to do with tab completion, but if you're using v0.5.0, $ZSH_AUTOSUGGEST_STRATEGY should never be default because that strategy no longer exists and was renamed to history. The default value of $ZSH_AUTOSUGGEST_STRATEGY has been changed to (history), so it seems that somewhere in your config you are setting it to default, which is likely causing the issues you're seeing.
Check in your $ZSH_CUSTOM directory for any additional config you may have added. You should be able to remove anything setting ZSH_AUTOSUGGEST_STRATEGY and use the default value of (history).
I double-checked ZSH_AUTOSUGGEST_STRATEGY and it's (history) now. However, auto_cd is not working. Any clue on why this happens?
I have the same problem, but mine was already set to history, so that's obviously not the cause.
I have a similar problem, autocompletion is not working for folders.
Sample .zshrc:
setopt autocd
autoload -Uz compinit
compinit
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
I have a folder called Test in my home directory. If I open a terminal with that .zshrc, change to my home directory and type Tepacman -Qs zsh-autosuggestions
local/zsh-autosuggestions 0.5.0-1
Was able to reproduce with that .zshrc. Closing this as a dup of #379 just because it was reported first and posting this minimal .zshrc over there. Thanks @Ifnister!
Most helpful comment
I have a similar problem, autocompletion is not working for folders.
Sample .zshrc:
I have a folder called Test in my home directory. If I open a terminal with that .zshrc, change to my home directory and type Te
Output of
pacman -Qs zsh-autosuggestionslocal/zsh-autosuggestions 0.5.0-1