zsh-users / zsh-autosuggestions

Fish-like autosuggestions for zsh
MIT License
30.43k stars 1.85k forks source link

Issue with tab completion #683

Closed MZauchner closed 1 year ago

MZauchner commented 2 years ago

Describe the bug

When triggering autocompletion with tab, the input text does not get cleared and also cannot be deleted. Hard to explain, but here is a screenshot attached. The text typed before triggering tab completion was "spec". When cycling through suggestions with tab, the text "spec" remains at the beginning followed by the suggestion. "spec" in this case cannot be deleted with backspace and only disappears when the terminal window is resized. The only other plugin I am using is the syntax highlighting plugin. Any idea what could cause this? report

This seems to be an interaction with the agnoster theme. Has anyone found a solution for this?

Devarth123 commented 2 years ago

this bug can be fixed my putting this in your ~/.zshrc

"export LC_ALL=en_US.UTF-8 export LANG=en_US.UTF-8"

original post -https://github.com/ohmyzsh/ohmyzsh/issues/1905

Contentsearch commented 7 months ago

this bug can be fixed my putting this in your ~/.zshrc

"export LC_ALL=en_US.UTF-8 export LANG=en_US.UTF-8"

original post -ohmyzsh/ohmyzsh#1905

same issue on windows11, but it doesn't work . I've tried other languages as well, but it doesn't work. and my .zshrc config flow:


export ZSH="$HOME/.oh-my-zsh"  
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

ZSH_THEME="robbyrussell"
 plugins=(git  
          zsh-syntax-highlighting
zsh-autosuggestions
     )

source $zsh/oh-my-zsh.sh

how do i do that ... When I type some characters and then use Tab after the line jumps and can't be deleted

image