awslabs / aws-shell

An integrated shell for working with the AWS CLI.
Apache License 2.0
7.17k stars 772 forks source link

Add auto suggest completions (fish-style) to more easily execute popular/recent commands #28

Closed donnemartin closed 8 years ago

donnemartin commented 8 years ago

Suggest

Imgur

Complete Suggestion

You can use the right arrow key to complete a suggestion.

Imgur

TODO

This could also be a toolbar option.

For suggestions to be more effective I think we'd need to use a FileHistory instead of an InMemoryHistory which is persisted between sessions. Another option is to hook up to something more general like .bash_history.

We might need special handling for the .edit command if we switch to FileHistory as that could load a ton of history--maybe on aws-shell startup we can tag where we are in the history and only load from that checkpoint.

jamesls commented 8 years ago

Closing, this was merged via https://github.com/awslabs/aws-shell/commit/02ea3b58a221b6b72ac025e6f12990626689ca2c