Giter Club home page Giter Club logo

Comments (12)

lokesh-krishna avatar lokesh-krishna commented on September 17, 2024 4

But yes, I think simply auto-backup to external folder might be the first step.

Maybe simply allow setting a directory where the notes are stored or are read from? This might necessitate displaying folders too when users begin nesting notes but then everyone can just sync the folder with a service of their choice and you'd need to do nothing on your end.

from scarlet-notes.

violoncelloCH avatar violoncelloCH commented on September 17, 2024 4

+1 for WebDav sync (useful for Nextcloud/Owncloud Notes)

from scarlet-notes.

patschi avatar patschi commented on September 17, 2024 4

As previously suggested in #2 I'd suggest using CalDAV, a WebDAV extension. Just as an example: The mentioned OpenSource app DAVdroid (which seems to be recommended by Nextcloud itself) is using CalDAV to sync both, Calendar as well as ToDo.

Links for DAVdroid

from scarlet-notes.

 avatar commented on September 17, 2024 3

You could leave sync up to the user by exporting in an easily parseable format to a directory on storage, optionally external storage, then the user could use something like Syncthing to sync to the desktop, and possibly we could use another client to edit the notes there?

from scarlet-notes.

BijoySingh avatar BijoySingh commented on September 17, 2024 2

Ok, so I have though of doing this starting soon.
Will be doing this in two ways.

  1. Auto Backup:
  • The notes will be exported automatically to the backup folder every day. (This is not sync, as it will not read from there)
  • [Low/No Pri] Maybe an extension would be to allow reading, but it will be impossibly difficult to handle edge cases
  1. Firebase Cloud Sync:
  • Not Applicable for FDroid installs, only Google Play Installs
  • The user (optionally) signs in with Google, and then they will be able to sync the notes accross the devices live, similar to what happens in Keep/my other app Clipo.
  • This has to be done carefully, as none of this code will have to be in the master branch, to safeguard future FDroid builds.

from scarlet-notes.

EternityForest avatar EternityForest commented on September 17, 2024 2

SyncThing is such a fantastic system. Just saving to the filesystem and syncing with SyncThing would be enough. Half the point of sync is mostly to the computer, and there's already plenty of markdown editors.

You could just do what Pico does and store metadata in YAML as a header in the .md file.

from scarlet-notes.

BijoySingh avatar BijoySingh commented on September 17, 2024

Yeah, Sync is on my mind, I have been thinking about it. The problem with sync is the not backing up but loading back down. If we sync, it will have to be real time, unless it is very clear that it is not an expectation.

Ideally I would want to do something like Firebase, but since it is paid, and the services will break for FDroid which is using this app and building it on their end. But yes, I think simply auto-backup to external folder might be the first step.

from scarlet-notes.

smichel17 avatar smichel17 commented on September 17, 2024

I've been using a todo.txt app on my phone and syncing via nextcloud forever with few issues. I'm not sure how that interacts with newly created files (are they synced automatically?), though.

from scarlet-notes.

Offerel avatar Offerel commented on September 17, 2024

Currently I'm using Synchronize Ultimate, to sync Android to Folders to a Raspberry pi via WebDAV. So all what i need to know is the folder path on Android, where the notes are stored. Can you please tell us that folder?

from scarlet-notes.

smichel17 avatar smichel17 commented on September 17, 2024

You can write to your app's directory on internal storage without requesting file permissions. You get its location with Context.getFilesDir():

https://developer.android.com/reference/android/content/Context.html#getFilesDir()

https://developer.android.com/training/data-storage/files.html#WriteInternalStorage

from scarlet-notes.

ImproverOne avatar ImproverOne commented on September 17, 2024

I understand that syncing like keep is good, but the advantage of keep is that they have ios version of the app, so they permit the users freedom. Scarlett note pro is fun, to improve it is necessary to have an ios version or website version to get really flexibility.

from scarlet-notes.

DJCrashdummy avatar DJCrashdummy commented on September 17, 2024

@BijoySingh why are you thinking so complicated...?

i understand, that a built-in generic sync-service (WebDAV) may exceed the scope of this project... but why not go for the easiest solution, which will also require much less effort to implement:
simply use an user-defined folder at the "external" storage as main storage (saving & reading) for the notes instead of the "internal" android-storage and let the sync-software do everything else (including conflict-handling).

everything else are separate topics...

  • not sure if backups are required - much sync-services provide versioning.
  • integrating a sync-service is still possible, if really needed.
  • to think a bit further: maybe a setting to strip down markup and use/sync normal text-files (which can easily be opened and modified everywhere) may be worth to consider...?

from scarlet-notes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.