Lately there has been some renewed interest expressed for ignore patterns that sync between devices (https://github.com/syncthing/syncthing/issues/2491). As that’s not necessarily dependent on the huge “Next gen ignores” issue, lets discuss needs and potential ways to implement it. I am interested in this feature (as in I have lots of
#include .stignore-shared in my patterns), so if there’s a sensible way forward I may implement it.
Some initial thoughts:
Declare another special file like
...-globalthat is treated like a normal file with regards to syncing but is automatically included if present.
How to handle conflicts? Maybe make whatever parses ignore patterns look for conflicts and stop the folder in case there is one.
How to handle the initial chicken-egg problem of initial scan and then sync needs to happen for the file to be present, but we don’t want to scan/sync some stuff that is ignored? We could look for that file at folder creation time - probably either somewhat hackish or requiring huge refactor.