sigoden / aichat

All-in-one LLM CLI tool featuring Shell Assistant, Chat-REPL, RAG, AI tools & agents, with access to OpenAI, Claude, Gemini, Ollama, Groq, and more.
Apache License 2.0
4.36k stars 297 forks source link

Ability to insert commands generated through `aichat -e` into the command line #996

Closed taha-yassine closed 13 hours ago

taha-yassine commented 13 hours ago

Is your feature request related to a problem? Please describe.

I sometimes want to generate a generic command with placeholders that I would manually edit. I think it would generally be a good thing to have the ability to tweak the command before executing it. It would be specially useful if one wants to use sensitive data (eg API key) that they don't want to communicate to model providers.

Describe the solution you'd like

Add the ability to insert commands generated through aichat -e into the command line. As mentioned here https://github.com/sigoden/aichat/issues/724#issuecomment-2241088320, this is something other CLI tools can do, so it's theoretically possible.

Describe alternatives you've considered

What I currently do is just copy the generated command and manually past and edit it, but this isn't ideal.

sigoden commented 13 hours ago

see https://github.com/sigoden/aichat/wiki/Command-Line-Guide#shell-integration