Sublime Forum

Multiple Selections: Undo last Selection

#1

Hi there,

Multiple Selection is a really great tool!
Is there a possibility to undo the last selection?
I usually want to select using Ctrl + D and suddenly I realize,
that I don’t want to select the following occurences and redo to the last selection
to just work “till here”

For example if I only want to rename $i in the first loop but not in the second.
I do it like this: I select $i, press Ctrl + D untill I realize that I just reached the
second loop which shouldn’t be changed. So I undo the last selection and could edit all occurances I’m looking for.
Is there a undo shortcut?

for ($i=0;$i<=10;$i++)
{
if ($i==...
}

for ($i=20;$i<=10;$i++)
{
if ($i==...
}

Best,
pleini!

0 Likes

#2

command/control + u is soft undo.

1 Like

#3

Yep, Ctrl+U allows you to deselect occurrences of a word selected with Ctrl+D

0 Likes

#4

Exactly, that works!
Thank you :smile:

0 Likes

#5

I can select multiple occurences by using the Ctrl + D key combination but cannot undo by using Ctrl + U key combination. I am currently using sublime text 3 Build 3059 in 64 bit ubuntu v13.10.
Thanks.

0 Likes

#6

Doesn’t work for me either on ST 3 b3059 on Win 7.

It doesn’t work when I’m multi selecting from the Find box, but it does work when I ESC out of the Find box. It also works when I don’t use the Find box at all.

It’d be awesome if Soft Undo would work from inside the find box too…

0 Likes