Sublime Forum

Multiple cursor - is possible this?

#1

I have this structure

[code]

test
test
test
test
test
test
test
test
test
test
[/code]

The desired output is the

[code]

1
2
3
4
5
6
7
8
9
10
[/code]

Is it possibble with multiple cursor and some shortcut?

Do not overwrite each line separately.

Thank you

(With Emmet plugin its easy, but only when prepare new structure, structure is already defined above)

1 Like

#2

It looks like this plugin does what you want: https://forum.sublimetext.com/t/st3-minipy-inline-python-evaluation/9143/1

0 Likes

#3

Yeah, its looks like great, i´will try, thank you. :wink:

0 Likes

#4

There are a variety of plugins out there that will insert numbers based on selection. Some of them are:

github.com/eBookArchitects/Incrementor
bitbucket.org/markstahler/insert-nums

I tweaked one to have the behavior I wanted:

github.com/ehuss/Sublime-Insert-Numbers

There are also ones that will increment existing numbers:

github.com/yulanggong/IncrementSelection
github.com/prongs/SublimeNumberManipulation

0 Likes

#5

Thanks I will try all gradually.

This thread was not created only for incrementing numbers in multi cursors.

The main reason for this: it is possible if I mark several positions in the text using multi cursor, edit these “edit points” by using some shortcuts gradually? (A jump from one to the other with the shortcut?) It would mean to me :blush: :sunglasses:

0 Likes

#6

Using bookmarks:
ctrl+f2 to put a bookmark at each selections
shift+/f2 to to navigate

Other option:
https://github.com/colinta/SublimeMarkAndMove
Very similar to bookmarks but more flexible

0 Likes

#7

Come on guys, give a man some credit. I originally did this back here.

markstahler did give me some in the initial commit, but there should be a README with a link to my, my website or the original topic…

0 Likes

#8

[quote=“bizoo”]Using bookmarks:
ctrl+f2 to put a bookmark at each selections
shift+/f2 to to navigate

Other option:
https://github.com/colinta/SublimeMarkAndMove
Very similar to bookmarks but more flexible[/quote]

Very hot trick, easy to use and easy to remember, thanks

0 Likes

#9

Seems that nobody mentioned this one:

github.com/duydao/Text-Pastry

0 Likes

#10

You could try the Emmet plugin
expend this: div{$}*10

0 Likes