TheR1D / shell_gpt

A command-line productivity tool powered by AI large language models like GPT-4, will help you accomplish your tasks faster and more efficiently.
MIT License
8.81k stars 693 forks source link

[Feature] Single stroke reaction confirmation in shell mode #555

Open 0anton opened 2 months ago

0anton commented 2 months ago

Generated shell commands require confirmation.

To react on command input shown below I need two key strokes a + <Enter>:

[E]xecute, [D]escribe, [A]bort: a

Is it possible to implement reaction (execute, describe, abort) just with one key stroke, e.g. I press 'a' to abort. (like I only press q in less command to exit it)

Rationale: the tool aims to be handy, quick every day tool. Unnecessary typing makes it less konfiniert.