Colorsublime / Colorsublime-Plugin

Plugin for Color Sublime
MIT License
539 stars 58 forks source link

Configure Path for Themes #5

Closed nfarrar closed 9 years ago

nfarrar commented 10 years ago

Colorsublime is a great plugin. :) Just curious - I try to keep my User directory clean - and whenever I preview a theme, that theme is automatically downloaded and dumped into the directory - fills up quickly.

Is there a way to configure the directory where these are dumped? Specially, I'd like to be able to dump them into User/Packages/Colorsublime/Themes.

blopker commented 10 years ago

Seems like a reasonable feature. I'll take a look!

nfarrar commented 10 years ago

Awesome, thank you. :)

DerZyklop commented 10 years ago

I instantly had the same idea when i saw my user-directory. Isn't it possible to have them in "User/Packages/Colorsublime/Themes" by default? imo this would be the best way to handle that. PS: Plugin is awesome!

blopker commented 9 years ago

Hey guys, I'm pushing out Colorsublime V2 soon and I tried to tackle this issue. It turns out whenever you set the theme through ST's API it copies that theme to the User folder and rewrites the path in the user settings file. I have no idea why ST does this. It doesn't happen when you set the theme through ST's file menu, only through the API. It seems to be some kind of misguided feature.

Now, I can run a 'clean up' routine to delete these files, but I have to be really careful to only delete themes ST put there and not the files users actually want to keep.

Just wanted to keep you guys updated. I'll keep this open until I come up with a way to do this.

Edit: This is not an ST issue. See: https://github.com/SublimeLinter/SublimeLinter3/issues/169

blopker commented 9 years ago

OK, I finally found the issue here. The culprit is SublimeLinter: http://www.sublimelinter.com/en/latest/usage.html#choosing-color-schemes

Still working on a fix for this.

groteworld commented 9 years ago

I'll relay this here as well... The Package/User/SublimeLinter folder has been added and new SublimeLinter color schemes will be routed there. Thanks for bringing this to our attention!

There is now a command as well SublimeLinter: Clear Color Scheme Folder that takes care of unused SL color schemes.

blopker commented 9 years ago

Awesome, thanks @skj3gg. Closed!