Sublime Forum

Quick Skip Next broken

#1

The current implementation of Quick Skip Next is unusable.

For example, suppose I have a document that goes like this:

foo http://foo
foo http://foo
foo http://foo

And I want to use Cmd-D / Cmd-K Cmd-D to select only the “foo” tokens in the first column. I put the cursor at the beginning of the document and press Cmd-D so the first token is highlighted. I press Cmd-D, jump to the foo in the second column and press Cmd-K Cmd-D to skip it — so far so good. However, even though I have the two first foo tokens in the first column highlighted, I now have two cursors —

foo| http://foo
foo| http://foo
foo http://foo

and this is where it goes haywire. Next time I press Cmd-D, Sublime will perform this operation from each cursor, highlighting all 4 first foo tokens, and another press of Cmd-K Cmd-D will leave me in a completely broken state with selection expanded to all tokens in the first column and the first one in the second one, plus 3 cursors.

This renders the shortcut pretty much useless. It could also be fixed rather simply — make Cmd-D and Cmd-K Cmd-D only work from the last cursor/selection.

0 Likes

#2

What build are you running? I don’t have this problem—cmd+d works from only my last selection.

0 Likes

#3

Version 2.0, Build 2210. I think it was the same in the previous build that introduced the feature.

0 Likes

#4

I also can’t reproduce the error and get the expected behavior. Have you tried reverting to a freshly installed state to see if that makes the issue go away?

0 Likes

#5

Okay, no idea what was going on. I’ve reverted to an empty configuration, copied files from Packages/User back and reinstalled packages and now it behaves correctly.

0 Likes