-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Addition of /editor
command?
#1315
Comments
editor
command?/editor
command?
Thanks for trying aider and filing this issue. That does sound like a handy feature, yes. You'd have |
Correct, it opens I default to a tempfile with an Check out this video, should give you a brief idea of the workflow: editor-command-lwe.webm |
Is it viable to consider an option to author the prompt itself in the VSCode editor window and the pass it to aider? |
I opened #1818, but it was a duplicate of this. I will try to write a proposal here: DescriptionEnable a switch that would allow Aider to receive individual messages written in a custom text editor. We can refer to this as
|
This would be viable if, when you tell vscode to open a temporary text file, vscode is able to open the temporary text file in a new subprocess that is closed when you are finished writing the message. This allows Aider to easily detect that the user has finished writing the message to the temporary text file. I don't know enough about how vscode works to know if it already works this way when you tell it to open a file. |
@insilications having used the I think it's much cleaner to have |
Maybe you are right... I support any method, as long as we manage to add a way to open an editor for a particular I really hate having to construct long messages in the terminal. |
I nearly always construct my prompts in Obsidian (markdown note taking app) and copy/paste them into aider. |
I plan on submitting a PR for this feature, but there is some groundwork I have to do to make it work on Windows. |
Issue
Over at https://github.com/llm-workflow-engine/llm-workflow-engine I've implemented a very handy
/editor
command that:$EDITOR
environment variable, right within the context of the running programAs a Vim/Neovim user, this is super handy for working on more complex prompts, as I have my full editor seamlessly integrated into my workflow.
While LWE and Aider serve completely different purposes, I noticed Aider also uses Prompt Toolkit, and I bet it would be fairly easy to lift the existing
/editor
command code from LWE and port it to Aider.If you think this is a worthwhile feature addition, I might be willing to work on the PR to accomplish this, but I wanted to check for interest before I did any heavy lifting.
Version and model info
N/A
The text was updated successfully, but these errors were encountered: