Sublime Forum

Improved behavior of Tab on foreach syntax

#1

I start typing of command such as foreach (in Tcl) oder for (in C) or any other similar command
I use the autocomplete by press Tab to get the skeleton of wanted the command.
Now every further Tab key will jump to the next field of the command syntax.
This is practical if you really want to cycle through every field and alter it.
But in many cases I jump directly to the body of the for/foreach command and want to start typing the code for the body.
I do this by arrow down key which will place the cursor at position 0 in the empty row inside the foreach skeleton.
Now I press Tab to place the cursor at the correct indent position
But the normal Tab function is now overwritten by the still active “cycle through the command fields” logic.
So it jumps back to the row with the foreach arguments.
I find this very annoying.
Surrely it would be easy to improve the logic to auto recognize, that the user pressed the down arrow and this should logically stop the “cycle through the command fields using Tab” behavior.
I hope this finds some resonance.
Thanks
Alex

0 Likes