-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Completion Enhancements #144
Conversation
This is great, thanks for the PR! I'll take a closer look after the weekend. |
Apologies for the delay; I haven't had a chance to look in detail at this yet. |
No worries 😄 In the meantime, I could also have a look at #148 and resolve it in the same PR. |
That would be awesome :) |
Heads up some of the tests are failing in Python 3.6 |
Fixed them now. All tests passing! |
I apologize I messed up with the merge. |
…r option Fix google#136 for Bash
After a function is entered as a subcommand, the completion shows both function args and module flags. But if a module flag is entered following a function or its args, the function args are no longer shown in completion suggestion.
…ompletion script code
6c35e82
to
8bf2314
Compare
merged! |
Introduction
This PR changes the completion scripts that are generated by running the
--completion
option for the Fire generated commands. The changes are aimed to give more flexibility to the user.Main Changes
start
based completion tolast-command
based completion.start
based completion, the entire string that has been entered into the command prompt so far is used to map the completion suggestions. This creates inflexibility for the user, causing completion can not tab hint and complete the second param? #136.last-command
based completion, suggestions are based on the last command/subcommand (non-option arg) entered by the user. This gives flexibility to the user, to be able to use options in any order, thereby fixing completion can not tab hint and complete the second param? #136.Features
The features added are:
bash
&fish