Skip to content
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

Import/export app settings #128

Open
DomeDrake opened this issue Dec 27, 2023 · 10 comments
Open

Import/export app settings #128

DomeDrake opened this issue Dec 27, 2023 · 10 comments
Labels
enhancement New feature or request

Comments

@DomeDrake
Copy link

  • I have searched for existing issues that may be the same as or related to mine.

I would love to see this feature added. Not only would it greatly enhance the ease of setup of Orgzly R on a new phone, it would also give great peace of mind knowing one has not forgotten to write down anything when documenting ones own settings.

Thank you for all the work! :)

For the sake of completeness: This has been suggested for the original App orgzly/orgzly-android #156 by @mjf, too.

@DomeDrake DomeDrake added the enhancement New feature or request label Dec 27, 2023
@stfl
Copy link

stfl commented Feb 3, 2024

Would be nice to load config from a file within the repo. Or possible export/import to a file like with searches

@amberin
Copy link
Member

amberin commented Feb 8, 2024

Yes, I believe we should add an option to store all settings in a hidden file or dir in a repo. Either in a single JSON/TOML/YAML file, or in a .orgzlysettings directory with multiple files. (Alternatively in a special type of org notebook, but then we'd probably have to write lots of parsing code.)

This should be a big UX improvement when it comes to saving search queries and any other settings.

The configuration scheme would probably need to be versioned to allow improvements without breaking stuff.

I'm thinking there would be a new section somewhere in settings, where the user can choose which settings they want to store in the repo, if any. Or maybe that's over-engineering things, and we should start with a simple toggle: either store all settings in the file, or none? I guess it depends on whether we read and write to/from the file continually, or only upon a user import/export action.

I suppose it would be useless (or risky) to store configured repos in this file, even though we do support multiple repos, and the file would only go into one of them.

Currently, Git repos support an .orgzlyignore file. This should probably be supported by all repos (as a general solution to things like #147), and moved to this solution, if implemented.

@DanielKonopka
Copy link

Why not simply allow for importing & exporting of the entire /data/data/com.orgzlyrevived/databases/orgzly.db SQLite file?

@amberin
Copy link
Member

amberin commented Feb 13, 2024

Why not simply allow for importing & exporting of the entire /data/data/com.orgzlyrevived/databases/orgzly.db SQLite file?

Sure, that's possible, but a text file would be much more portable.

I also think a major benefit of storing settings in a text file in the repo is that it would allow continuous backup of settings, so that setting up a new device is always really easy, without relying on a manual export having been done.

@Ypot
Copy link

Ypot commented Mar 3, 2024

A headline in any of the orgzly notebooks would do it?

Like:
** Orgzly revived settings
...

@amberin
Copy link
Member

amberin commented Mar 3, 2024

Yes, that is definitely worth looking into. We already have the ability to parse and write org files, but not other file types, so an ORG-based solution may very well require less new code. And perhaps org note properties could be one solution for storing key value pairs.

@v-Nyo
Copy link

v-Nyo commented Jul 31, 2024

Honestly this is a crucial feature in my opinion. If you have many phones and/or many user profiles this quickly becomes a pain otherwise.

I think the best solution would be a portable file in the org dir AND an option to manually import/export.

@amberin
Copy link
Member

amberin commented Jul 31, 2024

I believe we should start with a manual export/import feature, and then build on that later. Continuously syncing to a repo file is probably a bit more involved, since it involves changes and conflicts.

@DanielKonopka
Copy link

@amberin Any heads-up on this? It's an absolutely crucial feature. Wish I could implement this on my own and contribute that way.

@rezaamashi
Copy link

rezaamashi commented Jan 24, 2025

+1 on this. This has been a hassle for me anytime I update my OS or for some reason I had to reinstall Orgzly Revived.

I have my preferred setup and some custom searches for widgets. Going back to the docs and setting the query up again one by one every time things come up is a lot of hassle in the UX.

Personally I have a Backups directory that I sync to my NAS and my laptop. It contains backed up data of some apps and setting configurations for apps that support exporting/importing settings, eg. syncthing, yt-revanced, aegis. But I am open to any app settings backup implementation.

Edit: When I browse my Orgzly Directory (to make .orgzlyignore for syncthing conflicts) I noticed that there is an Orgzly Search Query.json. I don't know if it was from Orgzly or Orgzly Revived. It contains list of the query that is used in search, but in my Orgzly Revived version it seems that it is NOT the one being used in the Searches queries. Since it is different and seems like it is from my older query configuration.

Edit 2: Also this #493 maybe could be prevented if Orgzly Revived have proper setting backup in place

amberin added a commit to amberin/orgzly-android-revived that referenced this issue Feb 17, 2025
amberin added a commit to amberin/orgzly-android-revived that referenced this issue Feb 17, 2025
amberin added a commit to amberin/orgzly-android-revived that referenced this issue Feb 17, 2025
…chosen note

The UI code has mostly been copied from ui.refile. If I were better at
Android, I would refactor to reduce the amount of duplicated code. But
this is easier, and I doubt it will create total chaos.
amberin added a commit to amberin/orgzly-android-revived that referenced this issue Feb 17, 2025
…chosen note

The UI code has mostly been copied from ui.refile. If I were better at
Android, I would refactor to reduce the amount of duplicated code. But
this is easier, and I doubt it will create total chaos.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

7 participants