-
-
Notifications
You must be signed in to change notification settings - Fork 141
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
Up arrow in history menu always cycling - not allowing older entries to be viewed #652
Comments
I have the same problem, I think it will be perfect if it is fixed. |
Yep, same here |
Just remove the |
@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:
|
@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 , |
@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 |
I have the same problem, I thought it was a feature🤣 |
I also encountered the same problem when using zinit management plug-in |
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.Screen.Recording.2023-10-14.at.15.08.58.mov
The text was updated successfully, but these errors were encountered: