subhaze / CSS-Extended

CSS Completions, LESS Completions, SCSS Completions
93 stars 15 forks source link

CSS-Extended adding classes #16

Closed dukesanj closed 10 years ago

dukesanj commented 10 years ago

I'm not sure if this is my fault...

When I add fa in class, fa lists all the font awesome css, but it needs to start with fa. I have to add fa manually. Another issue is if I want to add more than one css rule (new css: box1), no list appears ie. div class="fa fa-glass box1"

ST2 Win7

subhaze commented 10 years ago

Thanks for the report, I'll look into this sometime this week/weekend.

elshawno2 commented 10 years ago

thought id add to this ticket if possible?

having the same issue in st3 on winXP and win7

subhaze commented 10 years ago

@duukesanj @elshawno2 I'm able to get all completions to show when triggering the completion list via ctrl+space so I guess the issue you're seeing is that the list is not triggered automatically without calling it (ctrl+space).

If this is what you are referring to you can add "auto_complete_selector": "meta.tag string.quoted" to your user settings and that should auto trigger the completion list without the extra keystrokes.

elshawno2 commented 10 years ago

still having issues, relatively new sublime user, so my apologies for any obvious solutions.

i think i read somewhere that that with css extended you need to add the css files to cache in order to get this to work.

is that correct to assume that having the css file linked in the head isnt enough to get this package to work? and if so, what file am i adding the css cache to? my index.html?

perhaps a step by step set up guide would help? thanks

elshawno2 commented 10 years ago

@subhaze nvm sir. moments after writing that i found the solution. in order to get this to work, one needs to right click the FOLDER all of your files are in (html, css, etc...) and then select "add css files to cache". only then will this package work.

subhaze commented 10 years ago

@elshawno2

is that correct to assume that having the css file linked in the head isnt enough to get this package to work? and if so, what file am i adding the css cache to? my index.html?

That's correct, it does not load files in based on the link tags in the head of a document (maybe I can look into that as a new feature that attempts to do this?).

It stores cache on file save, or, by using the sidebar and right clicking a folder and selecting to cache that folder. Currently there is no recursion that happens so only the files of that folder are cached and no sub-folders are looked at.

Any suggestions on updating the readme.md is welcomed. Here is the link to the current explanation of how things work https://github.com/subhaze/CSS-Extended#completion-cache

subhaze commented 10 years ago

@elshawno2 OK, glad you found the solution. It seems that I need to make that a bit more prominent in the reademe so others don't miss that vital bit of info.

elshawno2 commented 10 years ago

i would definitely consider updating the readme for a clearer explanation and steps on how to get it working. also if you could into having it load whatever css files are linked, i think thats a feature a lot of people would love.

overall, this is exactly what ive been looking for since switching from dreamweaver. A+ would recommend, keep up the great support and thank you!

elshawno2 commented 10 years ago

@subhaze "auto_complete_selector": "meta.tag string.quoted" , dosent seem to be working for me.

elshawno2 commented 10 years ago

screen1

subhaze commented 10 years ago

@elshawno2 try removing the trailing ,

elshawno2 commented 10 years ago

@subhaze removed the "," still nothing

elshawno2 commented 10 years ago

@subhaze also noticing that while i got it to work, its only pulling up classes that start with a "."

my stylesheet example:

.hello {

}

.wrap {

}

.hello2 {

}

h1 {

font-weight: 20px;
text-decoration: underline;

}

h2 {

}

pressing ctrl+space only bring up everything except "h1"

subhaze commented 10 years ago

I've been a bit covered up, but, I'll try to review your updates in the next day or two.

edlahoz commented 10 years ago

@elshawno2 Classes are supposed to start with a "." Or I may be missing your observation.

@subhaze Can I manually reference an external file from a remote source? Say from a cdn?

subhaze commented 10 years ago

Yeah @elshawno2 is correct, if you have a . elements shouldn't added to the completion list. However, elements are currently not in the completion list at all, but, could be added in.

Here is the checklist I've come up with from this ticket:

elshawno2 commented 10 years ago

thanks @subhaze !

subhaze commented 10 years ago

Moved the list to a new issue here https://github.com/subhaze/CSS-Extended/issues/21