surrealdb / surrealist

Surrealist is the ultimate way to visually manage your SurrealDB database
https://surrealist.app/
MIT License
1.04k stars 74 forks source link

Ability to sync configs between computers #227

Open damccull opened 3 months ago

damccull commented 3 months ago

Describe your feature request I work on multiple computers depending on location and time of day. I would like to be able to sync my surrealist config between them.

Are you willing to contribute this feature? I am not a JS developer so I'm not willing to spend the time learning it well enough to contribute at this time.

I suggest, however, two easy methods of implementing this:

  1. Allow the configuration location to be specified so users can put it on OneDrive or similar. This will likely require splitting the config into two locations: A well-known location the app defaults to that will contain the location of the rest of the config, and the location specified in that well-known file to hold the rest of it.
  2. Consider using the github api to store settings in a secret Gist, let users log in with github, and pull settings from Gist if newer, pushing if newer locally. If there's a conflict, prompt the user, or try a merge and prompt only if it's not automatically solvable.