Harderer / UnusedCssFinder-Sublime

Sublime Text 3 plugin to find unused css names
MIT License
5 stars 3 forks source link

Not working #2

Closed NoxNoctis2 closed 8 years ago

NoxNoctis2 commented 8 years ago

Can't make it work with css inside html same as with css in separate file. What am I doing wrong?

2016-08-02_14-47-53

Source: index.txt

NoxNoctis2 commented 8 years ago

Oh, and could you please add it into Preferences > Package Control >UnusedCssFinder for paranoid people like me.

Harderer commented 8 years ago

Thanks for the feedback. Yes it was not intended to be used for inline css before. I've just released a new version, it should work now for these cases. It should have worked with an separate css nevertheless, please check again or I'll try to find out why it wouldn't work. Also added it to the sublime context menu ;)

NoxNoctis2 commented 8 years ago

Saparate files in same folder running with fresh release.

nope_unused_1

Harderer commented 8 years ago

I just found out, that I forgot to uncomment the examples in the default settings file. I've created a new release with an added debugging option and the corrected default settings file. If the settings file won't override, just uncomment the examples in the settings.. Thanks for informing me again.

NoxNoctis2 commented 8 years ago

v1.2.1

2016-08-04_18-35-55

Harderer commented 8 years ago

Yes, the search was not optimal. The declaration was stated as occuring, if the string itself occured in the content. I've optimized the search pattern - it should work now. Thanks for the info.

NoxNoctis2 commented 8 years ago

It seems to work fine now.

PS: Would be great to this features in next releases:

  1. Not highlight, but select all unused rules, so we could just press Backspace and... it's cleared. select_all
  2. Define in settings the array of rules that should be excluded from result by deafult. If file "unused.cfg" exist in project folder, so default exclusion list should be extended with rules from this file. default
  3. Feature "Clear on save"
  4. If it's possible, add rules in to project exclude list "on the fly". You just select the rule -> Context menu "Ignore this selector". ignore_ctxt