-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for importing/exporting of projects #24
Comments
I understand the request. Implementing it is actually not quite as simple. Firstly, the code currently uses the user defaults API to manage the project list. This would have to be re-written to use a file API. Secondly, CCMenu runs as a sandboxed application and cannot write to arbitrary places without the user confirming the location in a file selector dialogue. I guess, if the new implementation would ask the user where to keep the files using a file selector this might solve itself. I'll keep this open as an enhancement request. |
Makes sense. Thanks! |
Biggest use-case, even without automated sync: I work on a team with a few builds, and on-boarding folks to the team is much more complicated without the ability to share an initial config file. A walkthrough of this flow would be:
This is not meant to be a Love the tool, thanks for all the great work! |
You can share an initial config file using the defaults system. Quit CCMenu, run the following command in Terminal, and then restart CCMenu.
Hope this helps. |
Why is it not possible to simply backup the I tried doing that, but it fricken wiped all of my seventeen projects. Extremely frustrating! This happend on the same box that it was created on. Meh. |
I think I’ve just successfully migrated my settings by running |
I converted mine to XML and saved to Git so I am able to easily add/edit/change order of repos and then just reload from there using a script. Testing the export command above on a new Mac I find that the conversion to XML is giving this error, which also happened when I ran a convert on the plist file location to see what my new machine's XML would have come out to:
Got the same error trying to convert to JSON. Any ideas why? |
Which command gave you that error? If you meant the |
I meant the conversion to XML from the export, something like this:
Although I've just tested this on another Mac of mine and it didn't happen, even though I revision control my CCMenu config and load it to each machine from the same committed XML. |
If you are in a situation where you can't use the |
@richellis I actually converted my CCMenu ~/Library plist to XML and revision control it in Git, and then reload it from the XML using a script on each machine to keep them in sync. It's even better than using your backups. In fact it works so well that I now find it's the easiest way to add more repos to the config by copying a couple lines and then running the setup script across my machines, and by far the easiest way to reorder repos as I add more and tune the visuals based on say the name length or grouping similar repos together. Both my CCMenu config and the script are available on my Github's DevOps Bash tools repo along with all my other dotfile configs and bash scripts. I mirror the |
It would be useful to have import/export/sync options so I can host my project settings on something like Dropbox and have CCMenu read from that location across my machines.
The text was updated successfully, but these errors were encountered: