aider icon indicating copy to clipboard operation
aider copied to clipboard

"Run Shell Commands" Ideation

Open NerdGGuy opened this issue 1 year ago • 0 comments

Just some thoughts about how to make shell commands more friendly. There are likely a few things people might want to do.

  • Not run shell commands
  • Edit the shell command before running it
  • Prompt or Ask for more details about the command
  • /clear before running shell command

v0.54.12

python my.py --row 2 --field Labels
Run shell command? (Y)es/(N)o [Yes]: n
You can use /undo to undo and discard each aider commit.
---
my.py
> 

Suggestion

You can use /undo to undo and discard each aider commit.
---
my.py
> /run python my.py --row 2 --field Labels

Some feature that might better handle these use cases.

  • Down arrow can move to empty prompt
  • Left arrow can allow cursor movement to the characters the user wishes to add or change
  • Home can allow cursor to more to start allowing user to change /run to /ask or something different
  • Add shell command to history. This would allow user to run /clear and then up arrow to the "/run" command.

I'm not saying this is the ultimate UX, just ideating :).

NerdGGuy avatar Sep 04 '24 10:09 NerdGGuy