adtac / climate

The swiss-army knife of utility tools for Linux.
GNU General Public License v3.0
1.43k stars 76 forks source link

Add the command auto-completion could be better. #4

Closed leozhang2018 closed 7 years ago

leozhang2018 commented 8 years ago

There is no auto-completion in this version,add the command auto-completion could be better.

adtac commented 8 years ago

Agreed, I had this in mind when designing the way commands are executed - just need to add a autocomplete command inside shelp now. I haven't got much experience with autocomplete however, so if someone would be generous enough to contribute a patch, I'd gladly accept it :)

roccomuso commented 8 years ago

cool ;) +1

Theldus commented 8 years ago

If by auto-complete you mean I type in the terminal for example: climate c[TAB] and the terminal suggests me: clock and countdown, is quite easy to do and I can send you a pull request with this feature ;-).

adtac commented 8 years ago

@Theldus yep, that's exactly it. I'd love to get that feature merged (would improve usability by miles).

BTW would autocompletion work across multiple shells? I've tested climate in ZSH and Bash, so it'd be awesome to get this feature working in both (and possibly other shells too!).

Theldus commented 8 years ago

@adtac good question, yes, it is possible to work on others besides bash. In a quick test I ran on sh and zsh (with a few more lines of code).

adtac commented 7 years ago

I believe this is solved ;)