Customize attachment location with variables($filename, $data, etc) like typora.
${filename}
representing for current note filename.${foldername}
representing for current note's folder name.${folderPath}
representing for full path to current note's folder.${date:format}
representing for the current date/time using Moment.js formatting.assets/${filename}
, ./assets/${filename}
, ./assets/${filename}/${date:YYYY}
${filename}
representing for current note filename.${foldername}
representing for current note's folder name.${date:format}
representing for the current date/time using Moment.js formatting.${originalCopiedFilename}
representing for original copied to clipboard filename.${prompt}
representing the value asked from the user prompt.${originalCopiedFilename}-${date:YYYYMMDDHHmmssSSS}
, ${filename}-img-${date:YYYYMMDD}
Pasted image YYYYMMDDHHmmss
.Automatically update attachment folder name if "Location for New Attachments" contains ${filename}
.
${filename}
.${filename}
string in attachment filename. So it may be dangerous if multiple files share the same prefix.Automatically replace whitespace in attachment folder and file name with hyphens.
Automatically set all characters in folder name and pasted image name to be lowercase.
Paste images from clipboard converting them to JPEG.
The smaller the quality, the greater the compression ratio.
If enabled and Convert pasted images to JPEG
setting is enabled, images drag&dropped into the editor will be converted to JPEG.
If enabled, only image files will be renamed.
If disabled, all attachment files will be renamed.
If enabled, pasted copied files with known names will be renamed.
If disabled, only clipboard image objects (e.g., screenshots) will be renamed.
If enabled, attachments dragged and dropped into the editor will be renamed according to the Pasted File Name
setting.
If enabled, attachments processed via Collect attachments
commands will be renamed according to the Pasted File Name
setting.
When you are pasting/dragging a file with the same name as an existing file, this separator will be added to the file name.
E.g., when you are dragging file existingFile.pdf
, it will be renamed to existingFile 1.pdf
, existingFile 2.pdf
, etc, getting the first name available.
Default value is ` (
space`).
If enabled, empty attachment folders will be preserved, useful for source control purposes.
If enabled, when the note is deleted, its orphan attachments are deleted as well.
All notable changes to this project will be documented in the CHANGELOG.
Custom Attachment Location
is available in the official Community Plugins repository.Maintainer: Michael Naumov