Skip to content

Instantly share code, notes, and snippets.

@thomaswilburn
Created December 3, 2013 17:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomaswilburn/7773707 to your computer and use it in GitHub Desktop.
Save thomaswilburn/7773707 to your computer and use it in GitHub Desktop.
Caret is changing where settings are stored! Here's what you need to know.

Upgrading Settings in Caret: A Note

For most of its development, Caret has used Chrome's synchronized storage as the location for settings "files"--the JSON that gets loaded when you choose the Settings -> User Preferences, for example. In the past this has worked out well, but as these files have grown, they've started to migrate past the 4KB limit that's set on individual entries in sync storage. The first to do so was the Menus configuration. Nobody had submitted any bugs, which I suspect means that nobody actually changes the menus. But since user.json is creeping up on 4KB, we're going to have to make a change.

Sometime around December 4th, an update will roll out that will migrate your custom settings to Chrome's syncFileSystem API, which is backed by Google Drive. Due to some bugs in the way that Chrome handles these files, however, Caret won't actually read from them until a week or so later--it'll just back up the latest version of your settings. If it runs into any problems, you'll get a notification that will direct you to this page.

So You Had A Problem

Sorry about that! Caret will keep trying to save these files whenever its background process restarts (and restarting Chrome/Chrome OS usually fixes the problem), but you should probably back them up in case it doesn't manage to succeed by the time that the transition completes. To do so, open up any settings files that you've customized, and use File -> Save As to store them as actual files. Later, you can open these up and copy their contents back into Caret if your settings are lost.

@younoitsjoe
Copy link

i found a link to an updated set of commands for user preferences i think im trying to figure out how to use the zip folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment