yetone / avante.nvim

Use your Neovim like using Cursor AI IDE!
Apache License 2.0
6.45k stars 234 forks source link

Replace the input to be editable just like a buffer #188

Closed Kazy closed 2 months ago

Kazy commented 2 months ago

A prompt or question can often be much longer than just a simple input. With the current implementation, it is difficult to see the full question and impossible to insert new lines.

Would it be possible to use a Nui Popup instead of an Input (or anything else that would achieve the same thing) ? And also use a dedicated shortcut instead of <CR> to send the prompt ?

I have an implementation in my fork, happy to submit it if you agree with the idea. This could also be behind a configuration.

yetone commented 2 months ago

I am also considering directly abandoning nui.input and using a regular floating window + buffer to do this. Of course, this floating window is still fixed at the bottom of the sidebar to simulate Cursor interaction (I don't really like entering large chunks of content in pop-ups). Is your fork implemented this way as well?

Kazy commented 2 months ago

I am also considering directly abandoning nui.input and using a regular floating window + buffer to do this. Of course, this floating window is still fixed at the bottom of the sidebar to simulate Cursor interaction (I don't really like entering large chunks of content in pop-ups). Is your fork implemented this way as well?

It is using Nui, but using a Popup instead of an Input. I'll send a PR if you want to try !

yetone commented 2 months ago

Will the popup cover other content? It no longer looks like Claude. If that's the case, you can wait for my current modifications and see how it works for you.

Kazy commented 2 months ago

It doesn't, but happy to let you change it as well :)

yetone commented 2 months ago

‌‌You can try the latest version.

Kazy commented 2 months ago

‌‌You can try the latest version.

Perfect, thank you !