vrtmrz / obsidian-livesync

MIT License
4.71k stars 151 forks source link

Could we chose which folder to sync instead of chosing which folder to ignore ? #293

Open Limezy opened 1 year ago

Limezy commented 1 year ago

First of all, thanks for this awesome plugin ! I would like to use it as a sync between a few team mates working on a same project. For example, in my vault I want only to sync my "/PROJECT P" folder, and my team mate will also only sync his "/PROJECT P" folder. Would that be possible ?

vrtmrz commented 12 months ago

I appreciate the honour! We can use Regular expression for restricting synchronization targets (sorry for the VERY weird name). If you want to restrict the synchronised files to those under the folder PROJECT P, ^PROJECT P\/ is the appropriate pattern. However, there is a risk of unexpected exposure to misconfiguration and not be recommended, if you want to share the folder. (And probably we want to synchronise other folders for ourselves, don't we?).

LiveSync-classroom had been useful for these cases, however, it is just a bit outdated now. And FileSystem-LiveSync has a similar matter. I am going to merge these daemons, but I am a bit hanged writing things on my business, so it might be a bit delayed.