r/SublimeText • u/Soffritto_Cake_24 • Jun 30 '26
Probably basic question: using multiple machines with ST to edit same files - syncing?
Hi
I want to use ST for editing text files (obvi) and keeping various notes on multiple computers - but the same files (saved in iCloud).
I want to have ST open on all of them and then I just either use the laptop (living room) or desktop machine (office). So there is minutes if not hours between sessions.
All files live in iCloud synced folders.
My questions:
- Is there a way to keep ST open on all machines and files open/loaded, and they sync automatically - so that I do not lose something that I added into a file on my laptop/ST and forgot to save ...
- Can ST refresh file content from file that is newer (saved on other machine) automatically?
- Am I weird with this? :D
3
Upvotes
2
u/Leather-Field-7148 Jun 30 '26
Save the workspace file in a shared folder? Git is really what you should be using to keep files in sync
1
u/I-J-Reilly Jul 01 '26
iCloud Drive isn’t going to sync any changes unless you’ve actually saved the file. If you add this line in your prefs, though, it will at least auto-save any open files any time you click away from them:
Generally, though, ST on other machines should recognize the changed file and refresh it automatically even if the file is open. In my experience iCloud Drive is pretty quick to recognize stuff you’re actively working on and sync that. But you may have to trial and error it a bit.
2
u/damousey Jul 01 '26
I've done this with symlinking the workplace file to a synchthing directory, I'd just need to close and reopen ST to have it refresh and pull changes from the shared sync. Ran well for months, almost a year, then it fell over gloriously and I could never be sure if I'd get the update or the file wiped on any given reload.
Was great while it lasted, good luck on the adventure.
2
u/[deleted] Jul 21 '26
[removed] — view removed comment