Sync this note's embedded pictures/attachments using frontmatter

I need a way to have some, but not all, pictures and/or pdfs sync to my devices.

I save my notes as follows, in the same directory (so the current “exclude folders” sync options doesn’t apply):

Trip to Warsaw Caves.md
Trip to Warsaw Caves.jpg
Trip to Warsaw Caves-2.jpg
Trip to Warsaw Caves.pdf

Use case or problem

The problem is that all the pictures get synced or none of them do.
Sometimes you just need some pictures/pdfs, etc for a specific purpose or for a specific amount of time.

When I take a road trip and lose the net in the car I want to see the maps I saved locally and the pdfs of the hotel reservations. I don’t need the hundreds of pictures and pdfs relating to BBQ research or Woodworking or PhD Lectures.

More Examples
  • When I visit my mother out of town I want to show her the pictures of my new couch and I need my screenshots of google maps because we always lose the internet on the way there.
  • When I visit my Doctor I need the pictures of a mole she told me to keep an eye on and the pdfs of the last appointments lab results.
  • When I go to Spain I want my previous trip’s diary page with all of the embedded pictures and pdfs, and my travel papers including passport and insurance info.

Proposed solution

With the publish: true/false frontmatter key in mind, I thought the solution could be a similar key for sync, something like

sync: pictures or sync: attachments or sync: all

The property is searchable and easy to modify, applies to what we need when we need it, and we keep sync off for images/audio/videos/pdfs/other file types and just sync “all” in this note. (Maybe even including the attachments to other files this note links to as well).

Current workaround

  • sync all except x folders, but for those who use ‘asset’ type folders.
  • for each embedded image/pdf etc, include a link to it on a server. When at home you see your local image, and when away you see the “no image” icon but you can press the server link. Requires the internet, requires adding two links for every single one, and requires a server that does not change the name of the local assets (so no Google, no Dropbox, etc).
  • just use links to external server, which means always requires the internet. Good luck with that Cross-Canada trip and cell coverage.