Thanks for making this, it's very useful, especially compared to all the other similar shell GPT scripts which don't pass the OS and $SHELL as context. I really appreciate this :)
I have a suggestion:
In most cases when using the --shell/-s flag, the user wants to actually run the generated command.
The only question is then, whether GPT got the command right.
In most cases it gets it right, so a single enter press to run it would be the most convenient user experience.
Please make Y the default for the --shell command.
E.g. instead of:
❯ sgpt -s "list all env vars"
Get-ChildItem Env:
Execute shell command? [y/N]: y
Thanks for making this, it's very useful, especially compared to all the other similar shell GPT scripts which don't pass the OS and $SHELL as context. I really appreciate this :)
I have a suggestion: In most cases when using the
--shell
/-s
flag, the user wants to actually run the generated command. The only question is then, whether GPT got the command right. In most cases it gets it right, so a single enter press to run it would be the most convenient user experience. Please makeY
the default for the--shell
command.E.g. instead of:
the user would only have to press Enter:
and if the user doesn't want that, they can cancel with Ctrl-C (which would also be faster than entering
n
and pressing Enter).