jrowny / brackets-snippets

A brackets snippets extension
http://www.github.com/adobe/brackets
Other
129 stars 43 forks source link

It removes entire line whn trying to run unexisting snippet. #30

Closed RB-Lab closed 10 years ago

RB-Lab commented 10 years ago

I'm trying do the following:

1) created snippet triggered with fu to insert anonymous function; 2) type socket.on('textMsg', fu 3) trying to run snippet

Expected behaviour: snippet inserted or at least noting Actual behaviour: line socket.on('textMsg', fu removed

Additional info: snippet runs ok on a new line with only fu. BTW, is it possible to run snippet if its trigger doesn't occupy whole line?

jrowny commented 10 years ago

Closed as duplicate of issue #15

RB-Lab commented 10 years ago

isn't #15 about only part of this issue? I mean if you mistaken in your snippet or forgot argument it will remove whole line when you hit shortcut. That's confusing behaviour...

jrowny commented 10 years ago

Nothing should happen if a valid trigger is not found. If something does happen, I believe we need an issue isolated to just that problem.

zaggino commented 10 years ago

@RB-Lab This behaviour is also fixed in https://github.com/jrowny/brackets-snippets/pull/35