Add support to filter pages from the official sync by some criteria

at the moment I have some pages that are work related and anything else.
I am using git to sync my pages and manually filter out my work notes.

I have a script that moves the pages that contain certain type:: [[work]] to a subfolder in the pages directory and added that folder to gitignore.

i was thinking that having a way to do something similar with the official sync would be good. at the moment i am using git because it is the only solution that let me select what to commit/push

but I wanted to try official sync solution