Home Download Buy Blog Forum Support

unindent (shift-tab) after a snippet

unindent (shift-tab) after a snippet

Postby kirk1h on Wed Feb 02, 2011 12:47 am

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.
Last edited by kirk1h on Wed Feb 02, 2011 1:31 am, edited 2 times in total.
kirk1h
 
Posts: 7
Joined: Wed Feb 02, 2011 12:33 am

Re: unindent (shift-tab) after a snippet

Postby jps on Wed Feb 02, 2011 1:01 am

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.
jps
Site Admin
 
Posts: 3058
Joined: Wed Mar 19, 2008 12:33 pm

Re: unindent (shift-tab) after a snippet

Postby kirk1h on Wed Feb 02, 2011 1:21 am

jps wrote:You can press escape to cancel the snippet, or move the cursor out of the snippet area.


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"
kirk1h
 
Posts: 7
Joined: Wed Feb 02, 2011 12:33 am

Re: unindent (shift-tab) after a snippet

Postby kirk1h on Wed Feb 02, 2011 1:25 am

and:

snippet-execution in an active snippet is just wrong...
i wanted to insert a function named "conf":
"fun"-tab-"conf"-tab
you get:
Code: Select all
function confunction() {}; (argument) {
   // body...
}


the f from conf executes the f snippet.
kirk1h
 
Posts: 7
Joined: Wed Feb 02, 2011 12:33 am

Re: unindent (shift-tab) after a snippet

Postby kirk1h on Mon Feb 07, 2011 3:14 pm

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, ...
kirk1h
 
Posts: 7
Joined: Wed Feb 02, 2011 12:33 am


Return to Technical Support

Who is online

Users browsing this forum: Yahoo [Bot] and 8 guests