silverbulletmd / silverbullet

The knowledge tinkerer's notebook
https://silverbullet.md
MIT License
2.43k stars 175 forks source link

Feature request: Indicate dirty state for sync mode #1093

Open lutzky opened 3 weeks ago

lutzky commented 3 weeks ago

When editing on my phone, I always have slight paranoia that my cell reception is currently not great, and maybe the important note I took down is not sync'd to the server. Perhaps we can add a subtle "dirty state" indicator, something like "..." for "you've edited locally and we haven't sync'd yet" and " :white_check_mark: " for "your edits are sync'd to the server"?

(I find myself clicking the "Sync: Now" button a lot)

mjf commented 3 weeks ago

@lutzky That's great idea! I run with

hideSyncButton: true
hideEditButton: true

and added custom

actionButtons:
  - icon: refresh-cw
    command: "{[Sync: Now]}"
    description: Synchronize now

in my SETTINGS.md, because I suffered from some weird synchronization issues. Since the time I also click my custom button to ensure synced state as you do after any significant change (I do it on both when on mobile and desktop browsers). So, this is +1 for me too.

OT: I also realized that the indicator on the top saying "Done!" are not telling truth, because sometimes I see that the process is running on the server's console but the indicator is already gone. I would like to know for sure that I am in a fully synchronized state.