Sublime Forum

Zen Coding ( CSS Snippets )

#161

Awesome! I’ts working perfectly now. :smile:

0 Likes

#162

[quote=“sublimator”]The plugins are implemented via defining an on_query_completion callback that returns a list of candidates…

Then Sublime compiles the lot and finds the best match.

Unfortunately there’s no way to fix the problem you mention. There’s no way to disable the words in buffer completion.[/quote]

Another try :smile:
Is it possible to check words in auto-complete box and select candidate which is relevant to zen-coding? For example if I will click ctrl+space after ‘fz’, then I will have list on candidates - ‘fZHTuLCd4eMG7DV4buzZ7mQBpb569Fn883w1o4JlMLYrQ1C2mjJmv2U’, ‘fz’ and from there I can select right candidate.
I’m not sure if API provide access to auto-complete, but I guess there could be a way to automate this when pressing tab. So if I typed ‘fz’ then tab - it should turn to ‘font-size’, if I typed ‘fzh’ - then it can turn to ‘fZHTuLCd4eMG7DV4buzZ7mQBpb569Fn883w1o4JlMLYrQ1C2mjJmv2U’.

Hopefully this make sense.

0 Likes

#163

Any chance we can get this lil guy going on a GitHub Repository, I think you could get some extra contributors from there (myself included)

0 Likes

#164

Soon I will get new book about Python, learn it and definitely support this plugin. Anyway, thank you for making this plugin - this and multiple selections forced me to love sublime! :smile:

0 Likes

#165

[quote=“sublimator”]@kuroir

If you’d like to take over maintaining this that would be great. If that means moving it to GitHub then that’s up to you :smile:

I’m really not the right person for this as I barely use it.[/quote]

Sounds good to me, though I’m beginning getting used to Sublime. I finally decided to stop using TextMate.

I’m a front-end engineer so I believe that I can take care of this one, though I’m not that good with Python yet (I’m a Ruby Developer, shouldn’t be that hard I hope).

This would be great since that could mean that I could take Zen Coding functionality out of my SCSS (Sass) package.

Any chance you can point me out to some docs about how everything works on the current package? anything would help.

0 Likes

#166

[quote=“sublimator”]@kuroir

If you’d like to take over maintaining this that would be great. If that means moving it to GitHub then that’s up to you :smile:

I’m really not the right person for this as I barely use it.[/quote]

Sounds good to me, though I’m beginning getting used to Sublime. I finally decided to stop using TextMate.

I’m a front-end engineer so I believe that I can take care of this one, though I’m not that good with Python yet (I’m a Ruby Developer, shouldn’t be that hard I hope).

This would be great since that could mean that I could take Zen Coding functionality out of my SCSS (Sass) package.

Any chance you can point me out to some docs about how everything works on the current package? anything would help.

0 Likes

#167

Sublimator,

I upgrade ZenCoding to current state and now ‘.’ and ‘#’ in html tags didn’t work. I try set “auto_id_class” : true, but nothing happens.

Maybe I doing something wrong or it is some bug?

0 Likes

#168

I editing them in the zen-coding.sublime-settings, this part:

        // If `true` will insert id="$1" snippet on pressing '#', similar on '.'
        // Useful for `raw html`, but annoying for some templating langs.
        "auto_id_class" : true

Yes, I think it’s ok.

0 Likes

#169

Copy this settings to ‘User/Base File.sublime-settings’:

    "File Settings" :       {
        // If `true` will disable ctrl+alt+n binding
        "alt_gr"        : false,
        // If `true` will insert id="$1" snippet on pressing '#', similar on '.'
        // Useful for `raw html`, but annoying for some templating langs.
        "auto_id_class" : true
    }

Nothing happens.

And for placing one space in css rules it must be added “filters”: “html,css,fc”?

        "css": {
            "filters": "html,css,fc",
            "snippets": {
                "c": "color:#${1:000000};"
            }
        }

Not working for me :frowning:

0 Likes

#170

Oh, now it works. It was needed copy to Base File only “auto_id_class”: true :smile:
Sublimator, thank you!

But how to enable ‘fc’ filter I not understand :frowning:

0 Likes

#171

Thanks! :wink:

0 Likes

#172

Output:

u'html,css,fc'

Yes, I have zen-settings.sublime-settings in User/
Both of zen-settings.sublime-settings is identical.

0 Likes

#173

You right!

Now I understand how it works. Sorry for distraction.

0 Likes

#174

hey, i was searching for class and ID thing, thanx a lot!

also a feedback. i discovered that when i wrap something with “enter haiku” [opn+shft+w], it corrupts the page encoding or maybe adds a hidden character somehow. my local php server displays a white page to me after i used that. i don’t know its directly related with zen coding snippet though.

0 Likes

#175

Yup, Zen (and possibly just good ol’ ST2 in some contexts) has issues with PHP’s $ syntax sometimes, usually getting rid of the $ in the text or sometimes the whole variable, turning $this->property into ->property
It can be quite annoying actually, but I’ve kinda learnt to live with it as I’d expect the fix could be a very annoying one for you plugin devs!

0 Likes

#176

Is it the latest version of Zen or Sublime that has stop press . or # when inside a tag inserting class="" or id=""?

0 Likes

#177

Great thanks!

0 Likes

#178

features “increment/decrement number by” have stopped working, why?

0 Likes

#179

CTRL + ALT + ENTER are great tool, but on GIF video i can see they use a CSS SELECTOR,

What is the key binding for that?

0 Likes

#180

Please help me!
where should I run this command $cd $PATH… etc?
should I innstall subversion system to do that?

0 Likes