Add filename format setting(s) for "Download attachments for current file"

Use case or problem

Using the “Download attachments for current file” command has the advantage of making content (particularly clipped content) less reliant on the site(s) from which the content came as well as more usable offline.

However, depending on how the original attachments were named, the downloaded attachments may have names that are not easily associated with the note that references them, and worse, may not describe the contents of the attachment at all, resulting in attachment folders containing lists of inscrutable filenames.

Proposed solution

Create a setting or settings that allow the user to specify the format of the filenames of downloaded attachments. I envision something similar to the “Date format” setting for the “Daily notes” core plugin, where the syntax would allow the user to construct filenames (and their paths, if so desired) using such elements as:

  • The attachment’s original name
  • The name of the associated note
  • The usual date/time elements
  • Probably a bunch of other cool-but-obvious things that I haven’t thought of

For example, using this setting would make it possible to implement a per-note attachment folder containing all that note’s attachments and using the attachment’s original name as well as a timestamp-based anti-collision string:

/Attachments/{notename}/{attachmentname}-YYYYMMDDHHMMssSS

Current workaround (optional)

Leaving things as-is and dealing with any issues as they crop up, potentially creating larger issues that will be more difficult to address in the future.

Related feature requests (optional)

N/A (as far as I could tell)