Open luisiacc opened 2 weeks ago
I think this makes sense, will put up a PR
that was fast
We haven't finished every thing yet, still need to stream text and generate diff. I will reopen to track this
+1 to this issue,, the in-line editing features are even more important imo. Can you imagine a hydra mode with a bunch of shortcuts mapped to refactor prompts? document this function, improve that, a literal machine gun of AI black magic
The first version of the editing mode has been implemented, and a better editing experience will be implemented later.
They have this very handy functionality with Cmd + K where they select a block of text and prompt it to do an action in that block of text, and it replaces the entire text selected with the AI response.
This can be done with
AvanteAsk
of course, but this is way handier for quick changes.I think it'd look good using something like
vim.ui.input
on the selected block and then replacing the text with the ai response, like:It looks like this on cursor:
https://github.com/user-attachments/assets/190f1c29-52bb-4f59-b176-581e4b54b20f
I don't think we need the diff for this case, it'll just be in the way.