MicroPad / MicroPad-Electron

The desktop app of https://github.com/MicroPad/MicroPad-Core
Mozilla Public License 2.0
64 stars 4 forks source link

Feature Request: Better External Sync Service Integration (Nextcloud) #7

Open aaronSkar opened 6 years ago

aaronSkar commented 6 years ago

Hi,

Awesome job with this app so far! The UI is very sleek and easy to use! I have a feature request on syncing the notes with a private cloud solution like Nextcloud.

It would be nice if there was a simple way to tell the app where to store local files. This would allow any cloud storage service with a local sync folder to keep notes in sync, not just nextcloud. The user would simply create a folder within their sync directory structure and tell micorpad to store notes there.

I have the app install in Ubuntu via Snap. If there is an easy way to do this already feel free to close. This is not the same as exporting and importing notes at every use though.

NickGeek commented 6 years ago

Thanks for trying out the app, I really appreciate it.

For simplicity I'm currently using the same storage system on the web and in the electron app (localForage/indexedDB), so an abstraction would have to be written that is used on the electron app to save to a file. It would probably need to run in WebWorker too because exporting is a pretty expensive task (computationally) as it has to get all of the binary assets in a notepad.

It's definitely possible, although the performance impact worries me. Currently my advice is to use Ctrl+S/Cmd+S and Ctrl+O/Cmd+O, like with Microsoft Office, to save and open notepads to/from disk.

If you would like to write a pull request to try and get external saving working and it's not going to slow the app down too much I'd love to take a look.

Thanks for the suggestion!

NickGeek commented 6 years ago

Also if privacy is a concern with MicroSync I'm currently looking into switching from server side encryption of notepads to E2E encryption for all of the main content. I'm a little busy with university but that should be a pretty simple transition.

Edit: There is now E2E crypto in micropad.

hugo-laestander commented 5 years ago

I too would love this feature! An alternative is to do the saving with webDAV which would be pretty awesome. Maybe harder to implement, but it would be very useful. Then you could sync it to any webDAV solution, and it would be possible to implement Nextcloud (webDAV) on all the platforms, even web.