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

CLI: Auto complete for all the arguments #103

Open
aidin36 opened this issue Nov 13, 2014 · 4 comments
Open

CLI: Auto complete for all the arguments #103

aidin36 opened this issue Nov 13, 2014 · 4 comments

Comments

@aidin36
Copy link
Owner

aidin36 commented Nov 13, 2014

There can be auto-complete for all the arguments of CLI. For example, when I write tocc --tag and press the tab, it complete the command to tocc --tags-statistics.

It can also be more smarter. Have you seen git auto-complete? If you type git checkout iss and press tab, it will complete to git checkout issue12 (assume that you have a issue12 branch).
Tocc's CLI can auto-complete things like tags, for example when I write tocc --query tag=bo and press double tab, it can list all available tags started with bo.

@DThiebaud
Copy link
Contributor

Is this possible? I thought that tocc would not be executed until after you have typed the whole command line and hit enter. Before that, isn't the shell running, which knows nothing about tocc? Is there something I don't understand here?

@DThiebaud
Copy link
Contributor

Upon investigation: yes, it can be done. It is done in bash, using bash auto-completion. See http://tldp.org/LDP/abs/html/tabexpansion.html

@aidin36
Copy link
Owner Author

aidin36 commented Jan 12, 2015

(-:
Thanks for the research.

Should I assign this to you? Are you going to work on it?

@DThiebaud
Copy link
Contributor

On 1/12/2015 1:03 PM, Aidin Gharibnavaz wrote:

(-:
Thanks for the research.

Should I assign this to you? Are you going to work on it?


Reply to this email directly or view it on GitHub
#103 (comment).

I'm busy right now. I'll take the task in a couple of weeks if no one
picks it up first.

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

No branches or pull requests

2 participants