ekkinox / yai

Your AI powered terminal assistant.
https://ekkinox.github.io/yai
MIT License
682 stars 32 forks source link

Be able to summon/looping through previous prompts by using the arrow keys #1

Closed Swop closed 1 year ago

Swop commented 1 year ago

Since some tasks would be a bit repetitive (ex: "try to do this", "oh, I'm missing dependencies", "try to install them, then", "try to do the first thing again"), or simply because sometimes you want to do something multiple times (like checking the status of something etc.), it could be convenient to be able to use the arrow keys to loop through prompt history, just like we can do with a classic shell.

Since hey is running the expected commands under the hood, the executed commands are not inserted in the shell history, so having such a feature in the hey prompt/REPL could be a good alternative.

ekkinox commented 1 year ago

The TUI has been completely refactored.

You can now use up or down arrows when the prompt is focused to navigate in your history.