Sublime Forum

Insert Incrementing Idea

#1

After playing with the beta for a few days I’m pretty impressed, I had a thought based on the nifty multiple selection system. I wondered if it was possible to adapt it in some way to handle the following case, where you have a numerical list and I want to insert an item early in the list which requires renumbering the entire list.

e.g.

switch (section) { case 0: title = @"Intructions"; break; case 1: title = @"Thing"; break; case 2: title = @"Otherthing"; break; case 3: title = @"Etc"; break; ... case 10: title = @"etc"; break; default: break; }

It would be great if you could select the case # and increment the list to insert a new item somewhere in the middle. I have to imagine there are a bunch of places where this could apply.

Just a thought, keep up the great work!

0 Likes