Sublime Forum

Zen Coding ( CSS Snippets )

#71

New plugin system isn’t it.

0 Likes

#72

Hey I really like this plugin and appreciate the effort put into it, I just have a couple of things I’d love to be able to change

I’ve been digging around the source and I cannot find how to alter a couple of things

  1. I’d like to be able to remove the space that’s inserted between the css value ie. when expanding fl:l -> float: left; i would prefer fl:l -> float:left; and also when doing a straight expand ie. fl: -> float:| (| representing the cursor position)

  2. Also i’d prefer to be able to modify the css expand so that it doesn’t automatically add a newline with indentation on expanding

  3. One thing I have noticed with F1 list for CSS is that it searches all values, and not from the beginning of the line, this means that you can’t get to certain elements (try searching for “p”) minus quotes and you’ll see what i mean

  4. Also bug? fz expands to fz-index: and not font-size?

thanks

0 Likes

#73

I would love to see Zen Coding support in Sublime as it’s the one thing holding me back from switching from Komodo :smile: you sure we can’t tempt you to keep the working going some how?

I’m sure a few of us would be more than happy to donate some £££’s for your hard work, least I know I would!

0 Likes

#74

[quote=“sublimator”]Here’s a quick hack port of Zen to s2 ( see attached zip ) I did last week. ( see attached zip )

It will ** likely ** be buggy. Only windows keymap is setup etc. Commands are missing. Hasn’t really been tested ( I don’t use X yet )

Be aware that default snippet bindings will take priority over normal bindings.

Dunno when I can look at it properly.[/quote]

I placed the package in it’s right place, but I’m still not able to get ZenCoding to work for S1 or 2. Does anyone know if “ctrl+,” is still used to expand in S1 or 2?

0 Likes

#75

[quote=“sublimator”]The posted zip was for S2 only.

Most commands (expand, balance tag etc) work here for me. Shrug.

It should just be abbrev->tab.

If it’s not working for people maybe I’ll just remove the zip to avoid wasting time.[/quote]

It works for me!

0 Likes

#76

[quote=“sublimator”]The posted zip was for S2 only.

Most commands (expand, balance tag etc) work here for me. Shrug.

It should just be abbrev->tab.

If it’s not working for people maybe I’ll just remove the zip to avoid wasting time.[/quote]

I’m using the latest S2 alpha. I typed in

div#content>p

And then pressed [TAB], but nothing expanded. And I’m sure I have it placed correctly. Am I missing something?

0 Likes

#77

[quote=“sublimator”]

etc . Commands are missing. Hasn’t really been tested ( I don’t use X yet )

Are you on *nix. You’ll have to copy the keymap?[/quote]

*nix? unix? linux? No. I’m on Windows 7 x64.

0 Likes

#78

does it work stable on last sublimetext?

0 Likes

#79

Thanks for taking the time to convert this to ST2 sublimator :smiley: This should be built into ST imo.

I can’t get the CSS help menu to show up with F1 anymore. Is it still there? I’m on windows 7 64bit.

0 Likes

#80

Also how would I get the css commands to work on .less files?

0 Likes

#81

It’s in essence just like css so is there any way to just make zen coding css commands run if the file extension ends in .less aswell as .css?

0 Likes

#82

I didn’t mention I’m using the less textmate bundle github.com/appden/less.tmbundle

ZenCoding works if I set the document type to CSS but not if I set it to LESS using that bundle.

0 Likes

#83

Does this plugin work or still buggy for st2?

Tab expand works?

0 Likes

#84

[quote=“sublimator”]

Oh, rightio, I guess it’d be a matter of setting the right selector contexts on the bindings.

The expand abbreviation tab binding has a selector of ‘source.css’ which should match ‘source.css.less’ so I’m not sure what’s going on. Can you link me to the particular less bundle / syntax file you are using?

Which commands in particular aren’t working? They are definitely **working **for normal css?

( Some of the commands in the S1 ZenCoding relied upon regex bindings not yet available in S2. There are workarounds but I’m not going to bother properly looking into Zen on S2 until it ships with Python3.2, a QuickPanel API and regex bindings, and the next stable release of ZenCoding with its new API is out )[/quote]

Ah fixed it. My file was called base.less not base.css.less

0 Likes

#85

Woo hoo!

I’m transitioning from N++ and this is another thing I was worried about.

But you got it covered!

Thanks you very much!

0 Likes

#86

ZenCoding 0.7 has been released yesterday.

github.com/sergeche/zen-coding/ … ease-Notes

0 Likes

#87

Yea hoping to see this for SB2 soon. About the only thing keeping me from using this full time over textmate. Not working for me on OS X.

0 Likes

#88

Ahh I see. Looks like it doesn’t have the html5 stuff in there yet in the html_matcher stuff.

Also for some reason I can’t set it to super+alt+e similar to what it is in other editors. Just beeps at me. super+e works though.

0 Likes

#89

Would love to see this in ST2 on OSX :frowning: really missing it.

0 Likes

#90

Getting this in OSX ST2 would definitely make me move out of textmate.
+1 for adding the ZenCoding’s CSS Snippets in the default package.

Going to give a try to the recommendations in this thread to see if I can get it to work.

0 Likes