Closed poopsicles closed 3 months ago
I have the same problem, I think it will be perfect if it is fixed.
Yep, same here
Just remove the source ~/Repos/zsh-autocomplete/zsh-autocomplete.plugin.zsh
from .zshrc and add zsh-autocomplete
to the plugins
@Cyberozoc I use Znap for plugin management, not oh-my-zsh, so I don't think there's a "plugins" section of my .zshrc...
this is how it looks:
$ cat .zshrc
# get znap
source ~/zsh-repos/znap/znap.zsh
fpath+=~/.zfunc # completions dir
rustup completions zsh > ~/.zfunc/_rustup
rustup completions zsh cargo > ~/.zfunc/_cargo
poetry completions zsh > ~/.zfunc/_poetry
export PYENV_ROOT="$HOME/.pyenv"
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
setopt autocd
zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' 'r:|=*' 'l:|=* r:|=*'
# Download Znap, if it's not there yet.
[[ -r ~/zsh-repos/znap/znap.zsh ]] ||
git clone --depth 1 -- \
https://github.com/marlonrichert/zsh-snap.git ~/zsh-repos/znap
znap source marlonrichert/zsh-autocomplete
znap source zsh-users/zsh-autosuggestions
# tab and shift tab cycle through dir suggestions
zstyle ':autocomplete:*complete*:*' insert-unambiguous yes
zstyle ':autocomplete:*history*:*' insert-unambiguous yes
zstyle ':autocomplete:menu-search:*' insert-unambiguous yes
bindkey '\t' menu-complete "$terminfo[kcbt]" reverse-menu-complete
#bindkey -M menuselect '\r' .accept-line
znap eval starship 'starship init zsh --print-full-init'
znap prompt
@poopsicles I had the same issue when using Znap. I'd recommend removing Znap related code, and doing the manual install as follows:
git clone https://github.com/marlonrichert/zsh-autocomplete.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autocomplete
This will clone the repo into the default plugins folder for zshzsh-autocomplete
to plugins=(...)
in your .zshrc
file.source ~/.zshrc
in your terminal and it should work as expected.@ajmalab cloning just the repo alone (without oh-my-zsh, znap, or any other managers) still loops for me
have you tried changing the number of list-lines setting , zstyle ':autocomplete:history-search-backward:*' list-lines 256
@aninder that seems to work in a way...it still loops if you go all the way to the 1st entry, but i guess 256 is better than 16
it;s not perfect as it also clears the terminal and takes up all screen..
It seems zsh autocomplete conflict with zsh auto suggestion, after remove zsh auto suggestion, it never happened.
@yeoleobun weird because removing the zstyle ':autocomplete:history-search-backward:*' list-lines 256
setting and commenting out zsh-autosuggestions
still has the issue
I have the same problem, I thought it was a featureš¤£
I also encountered the same problem when using zinit management plug-in
If you want to be able to scroll more lines, then you need to configure this. See discussion #699.
Environment
Steps to reproduce
Contents of
~autocomplete-log/YYYY-MM-DD.log
(click to expand)The history menu that shows the last 16 items, along with the history search (invoked with
Ctrl+R
) loop between the bottom and top lines shown on the screen instead of showing older entries. I originally thought this might be intended behaviour, but #550 appears to be meant to implement this behaviour, so I'm not sure.https://github.com/marlonrichert/zsh-autocomplete/assets/87488715/b1290d97-f6ee-4a0f-b113-2658223b4eda