Sublime Forum

Zen Coding ( CSS Snippets )

#261

[quote=“castles_made_of_sand”]
Added you to the SublimeText Github organisation. You can now add the repo to git and push it there if you want.[/quote]

Ahh… so that’s how one gets included in the SublimeText github organization… Interesting.

0 Likes

#262

suddendly i cannot type the curly close bracket after the open one … if i type { normally st2 write { } but if i delete the close bracket i cant type it anymore.

0 Likes

#263

Thanks a lot, this bug almost made me crazy during coding.

I had same problem, but after upgrade to lastest version everything works properly.

0 Likes

#264

castles_made_of_sand

I know you are out the door, but can you point me to how to get zen css working with .styl files? I tried searching on source.scss and adding similar handling for source.styl, but no luck.

0 Likes

#265

Can you link me to the exact tmLanguage file you use?

Sorry about that :frowning:

0 Likes

#266

https://raw.github.com/Wizek/stylus/master/editors/Stylus.tmbundle/Syntaxes/Stylus.tmLanguage

0 Likes

#267

Despite my post above, I must confirm, that this bug still exists, but only in Windows. I tested ST2 in Ubuntu and everything works as expected. Also this bug occurs only if you type { with characters right after it. See attachment to clarification. At least how this bug affect my instalation in Windows.



0 Likes

#268

that’s weird…i had updated the plugin from the repository created bt catles_madeof_sand a few days ago and all went good…today the error reappeared…i have poltergeist inside my pc? XD

0 Likes

#269

Look in Packages/Default/Default ($platform).sublime-keymap:

[code]
// Auto-pair curly brackets
{ “keys”: “{”], “command”: “insert_snippet”, “args”: {“contents”: “{$0}”}, “context”:

	{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
	{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
	{ "key": "following_text", "operator": "regex_contains", "operand": "^(?:\t| |\\)|]|\\}|$)", "match_all": true }
]

},[/code]

Look specifically @ "operand": "^(?:\t| |\\)|]|\\}|$)"

It must be followed by a tab, space, ), ] or } or be at EOL. You could copy the binding into your User keymap and tweak the following_text regex operand to match <. I don’t know what implications that would have.

0 Likes

#270

What templating language is that (out of curiosity)?

0 Likes

#271

That was just example, this bug occurs in HTML or PHP. In JSON everyhing works properly. This problem is only on Windows.

My problem isn’t auto-pair bracket, i just cannot type closing curly bracket.

0 Likes

#272

Could you give me a repro (i’m on windows) in text ?

0 Likes

#273

@s7anley

Ah, sorry, I reread your post but I can’t get a repro.

0 Likes

#274

I don’t know what you mean by repro. I made video to explain odd behavior. When writing in PHP i just cannot type } and in HTML syntax just watch cursor.
http://www.youtube.com/watch?v=pVOFiePI5L0)

0 Likes

#275

@s7anley

AFAIK, repro == reproduction, as in steps to reproduce a bug.

I watched that video and it seems you showed the bug, then used PackageControl to disable ZenCoding and then you were able to insert the closing curly bracket.

If you could give me some text to work with rather than a screenshot / video it would be easier for me to try and reproduce the bug.

0 Likes

#276

[quote=“castles_made_of_sand”]@s7anley

AFAIK, repro == reproduction, as in steps to reproduce a bug.

I watched that video and it seems you showed the bug, then used PackageControl to disable ZenCoding and then you were able to insert the closing curly bracket.

If you could give me some text to work with rather than a screenshot / video it would be easier for me to try and reproduce the bug.[/quote]

this is exactly what happens to me…it happens with all the files in all string also in plain text…

0 Likes

#277

Uh yes you are right…it is working now :smiley:

0 Likes

#278

fed03 had a look at the } bug and apparently it’s an alt+gr related conflict with one of the zen bindings ( possibly only effecting people of non english layouts ?)

If someone sends me a pull request on bitbucket I’ll merge in any fixes otherwise I’ll get around to it at some point

0 Likes

#279

Pull request sent. As you wrote, it was conflict of Alt Gr + N for “Moves caret to matching opening or closing tag” biding. I changed it to Ctrl+Alt+M.

btw what about add this package on GitHub?

0 Likes

#280

[quote=“s7anley”]

Pull request sent. As you wrote, it was conflict of Alt Gr + N for “Moves caret to matching opening or closing tag” biding. I changed it to Ctrl+Alt+M.

btw what about add this package on GitHub?[/quote]

the binding for me is “evaluate_math_expression”

0 Likes