-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Suggest completions after argument was "selected" #2260
Comments
This is not a Cobra thing but a shell thing. If I didn't understand, please provide an explicit example of what you are trying to do |
Thanks for the fast response. Yeah i use zsh. But I am building a CLI tool, hopefully for all platforms. My explicit example is "reexecution of the command with new argument"(Maybe I should call this issue with this). For instance: $: ./my_cli_tool command arg_with_long_name And then pick from the history the last command(arrow up in zsh). So my first idea was to enable the cycling of the options even if one argument is already selected. $: ./my_cli_tool command Is it possible? |
I don’t believe your first idea is possible. Beside all this, I don’t believe cobra can help you with this requirement. It’s a shell thing. |
I would like to have completion cycling even if the argument is "selected"
Lets say I have arg1, arg2, arg3, and I choose the first arg1 and press enter.
Right now with my current setup I cant back to "cycling" the args with TAB pressing.
Is this possible with cobra?
The text was updated successfully, but these errors were encountered: