Sublime Forum

Multiple cursors with keyboard: PowerCursors

#1

PowerCursors is a Sublime Text 3 package that makes the add/remove/select of multiple cursors more convenient with keyboard.

Multiple cursors:


Multiple selections:

github page:
github.com/MaokaiLin/PowerCursors/
It’s also available through PackageControl.

Multiple cursors is awesome in Sublime Text. This plugin enhances it by allowing you to add one cursor at a time. While you are trying to put the current cursor in position, the other cursors you added will remain their positions unchanged. When you are done putting all cursors in desired positions, you can activate them and start moving and editing with all of them together. You can also select and edit multiple regions this way.

Hope you like this feature, and enjoy the extra power it brings to multiple cursors!

1 Like

Multiple Select Issues (with Ctrl+Alt+down or up)
#2

This is very useful, THANK YOU! :smile:

1 Like

#3

5-stars !!!
This is indeed Incredibly useful!

I have a suggestion for the way the “remove cursor” command works. It would be nice when a cursor/selection is removed the next cursor/selection that gets activated is the one that was closest to the one that was just removed.

For example, imagine I have 3 cursors positioned in a large buffer where the first one is on the first line, the second one is on the second-to-last line, and the third one is on the last line. If I have the second cursor activated and then removed then what currently happens after that is the first cursor will become active. However, activating the third cursor instead would make more sense to me.

That being said it’s a minor issue and overall this package feels very natural to use. Good job! :smile:

1 Like

#4

This is a great point. I just updated the package. It should now activate the nearest transition cursor after the current one is deleted.

1 Like

#5

Thank you, it works well when regular cursors are used.

However, there’s still one more issue concerning the case when selections are used. Right now it seems that if the active cursor is closer to the end of the previous transition selection than the end of the next one then the former selection will be chosen. The problem here is that if the size of the next transition selection is very large then it’s likely that the incorrect selection will be chosen. In the extreme case the active cursor could be directly within the next transition selection but the previous one will be chosen instead !

The solution here would involve taking into account the beginnings and endings of each selection.

1 Like

#6

I meant to make the cursor move the least distance when it is removed. But yes, it makes more sense to activate the selection when the cursor is within it. Updated the package. Hope it’s working better now.

1 Like

#7

Just started playing with this plugin. Seems very useful. Thanks!

1 Like

#8

Works perfectly now. Thank you !

1 Like

#9

Ah, great plugin, thanks! :smile:

1 Like

#10

This is a great plugin. Wicked, wicked, wicked! A great compliment to the multiple cursor functionality.

Lozminda

0 Likes