MiguelCastillo / Brackets-Themes

Brackets themes!
Other
138 stars 44 forks source link

Upgrading just deleted a theme I had downloaded and customized... #81

Closed andyburke closed 10 years ago

andyburke commented 10 years ago

Looks like Brackets removed the old extension folder and replaced it with the new one?

Any imported themes should go into a separate folder so that they are not deleted by an upgrade.

This just cost me a few hours of customization. :(

lkcampbell commented 10 years ago

@andyburke, correct, when you update the Themes extension, any customized work you did is gone unfortunately :(. The solution is to save your customized themes in a different directory that doesn't get replaced.

I believe the correct solution is to save your customized theme in the customized themes folder that is located in the directory just above the Extensions directory.

@MiguelCastillo, I couldn't find the documentation that explains how to configure the extension to look in customized folder for themes. There is a statement in the README.md that lists Configure custom folders to load themes from as a feature but I couldn't find any directions.

Also, maybe add some sort of warning with red letters about the possibility of losing your customized themes in you save them in the Extensions folder and then upgrade.

MiguelCastillo commented 10 years ago

@andyburke sorry this happened, we all know how crappy it is to lose your work :/

You can add themes in a custom directory that Brackets does not manage. I load a folder by default that isn't managed by Brackets. The folder isn't created for you, but if you have it, then Themes will load all the files in there.

  1. To get to he correct place, open Brackets and from the Help menu select "Show Extensions Folder".
  2. Right in there, at the same level as users, create a folder called themes.
  3. Place you themes in there and Brackets should not delete any of your themes that you put in there.
  4. Restart Brackets and your themes will be available.

Here is a screenshot of what mine looks like

screen shot 2014-06-18 at 8 59 12 am

If you want to set your own folder, that's possible too.

  1. Go to Themes->Settings menu
  2. Select the Paths and add a new folder to select an already existing folder.
  3. Restart Brackets and your themes in that directory will get loaded.
MiguelCastillo commented 10 years ago

@andyburke Again, I am really sorry you lost your work :/

Let me know if I can help you create an even better theme :)

MiguelCastillo commented 10 years ago

@lkcampbell Yeah you are right, I will add some instructions on how to manage themes that you don't want Brackets to delete when Themes is updated.

andyburke commented 10 years ago

Yeah, this bug is really:

My recollection may be hazy, but I think I downloaded a theme via the import link, then imported it, then saw it in the extension's directory and happily began customizing it. Maybe I'm misremembering and I told it to save into the extensions directory. If that's the case, then this bug is:

MiguelCastillo commented 10 years ago

@andyburke I am not sure really sure what you mean by import. Are you referring to installing the extension Themes?

andyburke commented 10 years ago

No, this UI via Themes > Settings > Import

screen shot 2014-06-19 at 5 01 21 pm

MiguelCastillo commented 10 years ago

@andyburke I have just pretty much reworked themes and one of the major thing is got was better support for importing from stylus. Much better support. And Themes will by default point you to the custom folder for so that themes you import don't get deleted when updating themes.

This should help you in future imports :)

andyburke commented 10 years ago

Cool!