zadam / trilium

Build your personal knowledge base with Trilium Notes
GNU Affero General Public License v3.0
27.2k stars 1.9k forks source link

add sync status next to the title(Feature request) #3196

Open lovitus opened 2 years ago

lovitus commented 2 years ago

Describe feature

Hello Dear Dev Please consider to add sync status ( saving / All changes saved) next to the title or somewhere . I use multiple portable devices to write my notes , sometimes I get network jitter (switch between different WIFI or wake up from sleep) and I don't know is my note safely saved on server.

Additional Information

No response

zadam commented 2 years ago

Hi, do you mean Sync status between Desktop and Server apps? Or just when using the server version?

lovitus commented 2 years ago

Hi, do you mean Sync status between Desktop and Server apps? Or just when using the server version?

Hello Zadam

I mean the Server Version (web version ) a status about telling all changes are saved on server would give me full confidence to use it as my daily , everywhere notes take application.

Those screenshots are from Synology Office , only for reference: 1, typing , there shows status " Saving" 2, stopped typing , there shows " all changes Saved" 3, disconnect network , there shows Permanent Banner " Offline- read only " , and forbidden use to change the content . 4, I reattach the network cable , also switch proxy settings , it also back to work fast and automatically .

this is the demo link http://lilf.quickconnect.cn/d/s/qV4d4whS1c5hXu8admmEDEYPjxSbrAwJ/nK21vhACN4YRNBSIc84l-2EMklnUwXQn-r7ageF_73Ak

image image image


Thanks for your awesome app Have a nice day

zadam commented 2 years ago

Ok, thanks for explanation.

Trilium is not very friendly to broken connections - when you edit the notes, it will save the data to the backend. But when the connection breaks during saving, it will not attempt to re-save again on its own. But to keep retrying forever probably isn't a good solution either since in the meantime some other client could connect and edit the note, retry would then overwrite. Probably some optimistic locking would be useful here, but there's no mechanism for that ATM. This will require some thought on how to handle this.

lovitus commented 2 years ago

Synology office also support edit from multiple places just like office 365 online doc, you can see other users cursors. And obsidian (sorry to mention to another software here, I actually consider to switch from obsidian to Trilium) also support collaboration, some features might provided by plugin " self-hosted livesync". it support automatically merging , even if I modify same line on two devices in 1 min (the sync delay, i have poor connection to my VPS), it will pop-up conflict solve dialog on both end devices.

I have tried Trilium , it does provide simple collaboration. And I'm not very curious about collaboration ,or file be overwritten by old out-updated content from recovered connection. it might need lots of extra work to fulfill the function .

maybe , just like synology office , when offlined client back to online , to refetch the content before allow use to modify , that might be the most simple and friendly solution. image

Trilium is my dreamed note application , this little problem is the only reason stop me to embrace it