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

Tab completion repeats the first character (oh-my-zsh) #294

Closed
aral opened this issue Oct 14, 2020 · 2 comments · Fixed by #295
Closed

Tab completion repeats the first character (oh-my-zsh) #294

aral opened this issue Oct 14, 2020 · 2 comments · Fixed by #295

Comments

@aral
Copy link
Contributor

aral commented Oct 14, 2020

Screenshot from 2020-10-14 16-42-39

This appears to be an issue with the command prompt additions that Extraterm makes in the setup_extraterm_zsh.zsh file.

If I comment out these two lines, the problem goes away:

extraterm_install_prompt_integration
add-zsh-hook precmd extraterm_install_prompt_integration

Update: narrowed it down to this line:

prefix=''`echo -n -e "%{\0033&${LC_EXTRATERM_COOKIE};3\0007%}%?%{\0000%}"`

If you change that to prefix='', the problem goes away. So it’s definitely something that’s being added to the prompt that’s causing it.

@aral
Copy link
Contributor Author

aral commented Oct 14, 2020

(This seems to be an issue with zsh with some other terminals too. Found this: alacritty/alacritty#1800)

@aral
Copy link
Contributor Author

aral commented Oct 14, 2020

Also, some good info here: https://stackoverflow.com/questions/19305291/remnant-characters-when-tab-completing-with-zsh

aral added a commit to aral/extraterm that referenced this issue Oct 14, 2020
…h-my-zsh)

To test:

Using oh-my-zsh, (e.g., Agnoster theme; although theme is not a factor):

## Before PR:

1. Open a terminal and carry out tab-completion on, say, the letter `c`
2. Notice that the `c` character is repeated.

## After PR:

Notice that the `c` character is not repeated.
sedwards2009 added a commit that referenced this issue Oct 14, 2020
Fixes #294: Tab completion repeats the first character (oh-my-zsh)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant