linuxmint / sticky

A sticky notes app for the linux desktop
GNU General Public License v2.0
178 stars 38 forks source link

Feature Request: Sync to text files #102

Open BeatLink opened 1 year ago

BeatLink commented 1 year ago

Hi. As i currently understand it, Sticky currently saves all notes within a single json file. I was wondering if you would be willing to implement a feature where the notes could be instead autosaved to a text file on disk, along with the ability to refresh the notes on any external changes. This would allow notes to be synced using common filesystem based sync solutions such as Syncthing, Nextcloud, Dropbox etc.

I have some code that can actually implement this, from my own work on a small notepad app so I'd be happy to work on a pull request.

collinss commented 1 year ago

Hi @BeatLink, thanks for the offer! I've been wanting to integrate with things like Nextcloud for quite some time, but haven't had much time lately to work on it. The biggest challenge to implement syncing ability is the formatting. Sticky uses a unique syntax to indicate formatting, so it's not as simple as just syncing a file. If you'd like to play around with it, go right ahead. I'd be happy to accept pull requests if you get something working. Otherwise, it will probably be at least a few months before I get the chance to work on this much.

BeatLink commented 1 year ago

Hey. I've been poking through the source code and you're right. Its a bit more intensive than I thought it would be. I'm not sure I understand enough to implement this. If it would help though, here's the link to the note app I was working on. Its deliberately designed to be as simple as possible.

https://github.com/BeatLink/StickyText