vscode-multiclip icon indicating copy to clipboard operation
vscode-multiclip copied to clipboard

Add support for multiple cursors

Open NKjoep opened this issue 7 years ago • 2 comments

Hey!

Nice extension! 👍

Do you have any plan to add the support for multiple cursors? That would be nice to copy from multiple cursors and being able save an entry in the history.

NKjoep avatar Feb 02 '17 10:02 NKjoep

Would you expect each cursor selection to have its own entry in the history ? Or a single entry, and paste each selection for each available cursors ?

stef-levesque avatar Feb 02 '17 15:02 stef-levesque

The second one!

I would expect to have a single entry in the history when copying from multiple selection.

However when pasting:

  • with multiple cursor active:
    • if the (chosen) entry from the history is a single line, past the entry to each cursor (this is the standard behaviour)
    • if the (chosen) entry from the history was copied from a multi-cursor, match the cursors positions
    • if the (chosen) entry from the history was copied from a multi-cursor selection but doesn't match the number of active cursor, then consider each cursor like a single cursor active (see below)
  • with single cursor active:
    • if the (chosen) entry from the history is a single line, just past (well known normal behaviour)
    • if the (chosen) entry from the history was copied from a multi-cursor, past in place creating new line per each cursor from the entry (default behaviour when pasting copied lines from multi-cursor)

NKjoep avatar Feb 02 '17 16:02 NKjoep