yetone / avante.nvim

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

feature: Flag for autoclose sidebar when applying all changes (pressing 'A') #743

Open icristianhernandez opened 1 week ago

icristianhernandez commented 1 week ago

Feature request

Flag to close the sidebar view after pressing 'A' to apply all changes. The same as title.

Motivation

In general I don't like splits in any editor. So, I need to manually close the sidebar everytime I'm applying changes to have the view with one buffers that I like (for the same reasons I like if the sidebar can be floating, but I see other issue open for that).

Other

No response

b0o commented 1 week ago

I think this would be a nice feature behind a configuration flag. Should this only take effect when applying all via A, but not when applying a single diff via a?

icristianhernandez commented 1 week ago

I think this would be a nice feature behind a configuration flag. Should this only take effect when applying all via A, but not when applying a single diff via a?

Actually, I was thinking of a flag for that feature. I've been getting only 2-3 hours of sleep for the past few days, and my brain is foggy. I edited the issue to express it better.

Regarding the single diff via a, I'm not sure what the best approach is. Maybe we could add two new keymaps to the sidebar mappings: "apply_all_and_hide" and "apply_cursor_and_hide".

aarnphm commented 1 week ago

I think gated behind A makes sense.