xji
xji

Reputation: 8277

Sublime Text - How to Make "Quick Add Next" NOT wrap around the beginning of the file

The functionality "Quick Add Next" is handy, however there is one problem, that after it reaches the last match in the file, if I do it again, it will go on to include the first match in the file also (wrap), which is not what I want, because it's usually hard to realize whether you've reached the last match or not. This occurs even if the option "wrap" is disabled among search options. Is there anyway to disable it?

If no, is there a way to unselect the match I just added by "quick add next"? That would be a valid alternative. Thanks.

Upvotes: 3

Views: 382

Answers (1)

MattDMo
MattDMo

Reputation: 102922

Quick Add Next has the keyboard shortcut D on Mac, CtrlD on Windows/Linux. If you want to skip a selection, hit K,D (CtrlK,CtrlD) - meaning, hold down the (or Ctrl) key, hit and release K, then while still holding down , hit D.

There is no way that I know of to disable the "wrapping" feature, but if you go too far and want to back up, hit U (or CtrlU), known as soft_undo, as many times as needed to go back to where you want to be.

Upvotes: 1

Related Questions