brenton-leighton / multiple-cursors.nvim

A multi-cursor plugin for Neovim that works in normal, insert/replace, or visual modes, and with almost every command
Apache License 2.0
152 stars 4 forks source link

Multiple Cursors with delete line and then paste line #66

Closed danrasmuson closed 1 month ago

danrasmuson commented 1 month ago

I'm trying to reproduce the behavior as found in sublime and vscode.

CleanShot 2024-05-29 at 11 09 06

But when I try with this extension it seems like multiple cursors don't work when the group on top of each other such as after commands like G in normal mode

CleanShot 2024-05-29 at 11 14 03

Any help here is appreciated!

brenton-leighton commented 1 month ago

At the moment the registers for the virtual cursors are just lost on exit. I'll write something to concatenate them into the real cursor register on exit. Thanks.

danrasmuson commented 1 month ago

Ahh. Yes. Your right. That is needed.

The other issue is that when "G" was pressed only one cursor and not the other

brenton-leighton commented 1 month ago

The other issue is that when "G" was pressed only one cursor and not the other

G isn't implemented, but making it a special function that moves all cursors to the end lines of the buffer sounds like a good idea. Something similar would work for gg too.

brenton-leighton commented 1 month ago

I've implemented merging the registers in #68. Let me know if it's OK.

I've also created a issue #67 for adding the G and gg commands.

Thanks

danrasmuson commented 1 month ago

Yes confirmed! Thank you very much @brenton-leighton.