Cannot tab through multiple choices #90

Closed
wernight opened this Issue Jan 27, 2016 · 10 comments

2 participants

@wernight

Setup

Installed as described as OMZ plugin (so it looks like plugins=(... zsh-syntax-highlighting zsh-autosuggestions)). COMPLETION_WAITING_DOTS is unset.

$ bindkey "^I"
"^I" expand-or-complete

Bug

Doing ls <tab> shows a list of possible arguments (and the gray autosuggestion). Pressing again chooses the first one, pressing it again should select the second possible choice but instead completes starting from generated string:

$ ls <tab>

$ ls <tab>
foo bar

$ ls foo/<tab>
foo bar

$ ls foo/123<tab>
foo bar

$ ls foo/123/456<tab>
foo bar

If I disable the OMZ plugins virtualenvwrapper and mvn (2 out of 12 plugins), then simply erases what comes after the cursor.

@ericfreese
zsh-users member

There's a rewrite underway in PR #91. It's available on branch v0.1.x. Please try using that branch, and let me know if it solves your problem.

@wernight

Not sure, it says: No such widget 'autosuggest-start'. Changed to autosuggest_start but says now: zle-line-init:2: command not found: autosuggest_start

@ericfreese
zsh-users member

@wernight Are you still having this problem? Are you sure you're sourcing the script correctly. Can you post your .zshrc?

@ericfreese ericfreese added this to the v0.1.0 milestone Jan 29, 2016
@ericfreese
zsh-users member

Closing this. Please open a new issue with more specific details if you're still having trouble.

@ericfreese ericfreese closed this Jan 29, 2016
@wernight

Still having the error, here the minimal ~/.zshrc to reproduce with my config following PR #91 (I tried some other variations as well):

ZSH=$HOME/.oh-my-zsh
plugins=(zsh-syntax-highlighting zsh-autosuggestions)
source $ZSH/oh-my-zsh.sh
autosuggest_start

Gives command not found: autosuggest_start. I did a git pull on v0.1.x just before.

@wernight

By sourcing both files it works but the issue isn't completely gone.

What works:

$ ls xx<tab>
$ ls xx1

What doesn't work:

$ ls <tab>
$ ls subfolder<CursorHere>~/Desktop

Also bugged same way:

$ ls <Up/Down>
$ ls temp1/a1/b1<CursorHere>~/Desktop

See also #80

@ericfreese
zsh-users member

plugins=(zsh-syntax-highlighting zsh-autosuggestions)

This isn't an oh-my-zsh plugin. Please read the installation instructions in the readme.

@wernight

I did. The plugin exists (in a commit "Add symlink for OMZ compatibility") and it's in the install instructions of zsh-syntax-highlighting

This was referenced Feb 3, 2016
@ericfreese
zsh-users member

@wernight Take a look at #104. PR's welcome!

@ericfreese
zsh-users member

@wernight Oh My Zsh support is now in on the v0.2.x branch. Take a look at the README and let me know if you have any problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment