main icon indicating copy to clipboard operation
main copied to clipboard

Sync

Open panckreous opened this issue 1 year ago • 3 comments

I can sync the prompt templates since I choose the directory to store them, any chance of being able to sync settings? I see a few json files in Application Support and the plist in Preferences, but not sure where the settings are and/or if I'll be able to sync them. A plain json file would be amazing, if possible.

panckreous avatar Nov 08 '23 13:11 panckreous

The state is in Application Support/IntelliBar/state.bjson. Does that work for you?

astoilkov avatar Nov 08 '23 13:11 astoilkov

Best case for sync is plaintext (json is my favorite since I can also manually edit but that's just me being greedy now).

Personally, I sync locally using syncthing. I keep as many configs as I can in my dotfiles repo which of course can handle binary but text is much easier to diff and fix any sync issues/conflicts that will arrise. Others sync with dropbox, for example, which offers its own type of conflict handling that is also helped by being able to diff the conflicting versions.

That being said, at this point there arent too many settings so there's less of a need to be able to sync the prefs automatically. The binary json is totally fine. Maybe if down the line there are more settings it'll be worth considering? Feel free to close this in the mean time if you prefer.

panckreous avatar Nov 08 '23 14:11 panckreous

We just (in 0.9) migrated from JSON to binary. We see how it's better for users to have a JSON but we did it because:

  • The user can break the JSON and then our error reporting will confuse us.
  • We wanted to support Map, Set, circular refs, and refs and JSON didn't support that. We tried with custom JSON serialization/deserialization but that was too slow.

astoilkov avatar Nov 08 '23 14:11 astoilkov