Awesome! I’ts working perfectly now.
Zen Coding ( CSS Snippets )
[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
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.
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)
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!
[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
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.
[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
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.
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?
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.
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
Oh, now it works. It was needed copy to Base File only “auto_id_class”: true
Sublimator, thank you!
But how to enable ‘fc’ filter I not understand
Output:
u'html,css,fc'
Yes, I have zen-settings.sublime-settings in User/
Both of zen-settings.sublime-settings is identical.
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.
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!
Is it the latest version of Zen or Sublime that has stop press . or # when inside a tag inserting class="" or id=""?
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?
Please help me!
where should I run this command $cd $PATH… etc?
should I innstall subversion system to do that?