Sublime Forum

Unindent (shift-tab) after a snippet

#1

hi,

i am trying to find an e-texteditor replacement and sublime seems the only way to go. but within a minute of testing sublime i found the indention very odd. shift-tab seems to jump to the snippet-parts. is this a bug? after some shift-tab-jumping the whole indention via tab seems to be broken.

edit: snippets execute in snippets: if you type “fun”-tab-“fun”-tab, to insert a function with the name “fun”, the second fun-tab triggers a new function snippet.

cant believe this kind of bugs exist.

0 Likes

#2

When a snippet is active, tab and shift+tab will jump between the snippet fields. You can press escape to cancel the snippet, or move the cursor out of the snippet area.

0 Likes

#3

escape works, but moving out of the snippet area not.

to reproduce:
open a new file, set the syntax to javascript.
type fun-tab and insert some text for the 3 fields.
move the cursor to the end of the file and enter a new line -> the status bar still says “Field 3 of 3”

0 Likes

#4

and:

snippet-execution in an active snippet is just wrong…
i wanted to insert a function named “conf”:
“fun”-tab-“conf”-tab
you get:

function confunction() {}; (argument) { // body... }

the f from conf executes the f snippet.

0 Likes

#5

bump.

so are the 2 bugs even considered as bugs? its so annoying to press esc on every snippet. the snippet should end as soon you type “enter” in a field, leave the snippet-area, delete the snippet, enter the last field, …

0 Likes