Skip to content

Autocompletion bug with multiple hyphens in options #965

Discussion options

You must be logged in to vote

So to come back to this observation I made earlier:

vals = ["foo-test-1234", "foo-anothertest-1234", "bar-test-1234"]

and autocompleting with

--name foo[TAB] 

leads to

--name foo--1234

Which seems wrong, as "foo--1234" is not a correct string from the options. But, importantly, as I can see from your video from the repo you created to reproduce, the cursor in this case would still be after "foo-" and before "-1234", right? Because in that sense the autocompletion is "correct": when starting with "foo" there are two options, both of which starting with "foo-" and ending in "-1234". But you still need to fill in the correct middle part.

I am not that familiar with zsh, but the behaviou…

Replies: 5 comments 15 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@alexrosenfeld10
Comment options

@alexrosenfeld10
Comment options

@alexrosenfeld10
Comment options

@alexrosenfeld10
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
11 replies
@alexrosenfeld10
Comment options

@svlandeg
Comment options

@alexrosenfeld10
Comment options

@svlandeg
Comment options

Answer selected by alexrosenfeld10
@svlandeg
Comment options

@alexrosenfeld10
Comment options

@alexrosenfeld10
Comment options

@alexrosenfeld10
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question or problem shell / zsh
2 participants