feat: emit AiderTerminalOpen event when terminal is created #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi,
I was looking for a way to add shortcuts that are only applied to this specific buffer. I wanted to use escape to close in normal mode, and
<c-s>
in all modes, but only in the aider terminal buffer.Rather than fussing around with checking buffer names in an autocmd, I found it easier to just emit a User event in the plugin on my branch and use the following code in my LazyVim:
Not sure if you find this at all helpful, but if you do feel free to merge this (or supply any feedback and I'll happily make the change).
This has been my favorite nvim aider plugin for its simplicity, and I'm happy to contribute more if you're supporting it.
This PR was written 100% by aider / claude sonnet, including the readme. Keeping with the plugin theme, no code was written by a human, though this pr description is 100% me.