Sublime Forum

Tabbing through multiple text blocks

#1

Hi,
the possiblity to select multiple text chunks as if I would select files in a file browser is great, but is there also a way to “tab” through them? Like tabbing through all the parameters in a snippet or super+G (win F3) after a search.

Thanks

0 Likes

#2

I just found a semi satisfactory solution:

Version 1:

select string
super+ctrl+g to select all occurrences of that string
super+F2 to bookmark all instances of cursor
now cycle through occurrences via F2 and be in edit mode instantly

Version 2:

search string
alt+enter to select all occurrences of that string
super+F2 to bookmark all instances of cursor
now cycle through occurrences via F2 and be in edit mode instantly

Both versions misuse the bookmarks tool, so clearing the bookmarks before is necessary to omit bookmarks that are not related to the search.

Perhaps there’s a more elegant approach to do this?

Edit:

Version 3 (as proposed by deiga in #sublimetext chat)

search string
alt+enter to select all occurrences of that string
now cycle through occurrences via super+g and be in edit mode instantly

Thanks deiga, Version 3 is what I needed.

0 Likes