feat(config): add filename_replacements to replace text in output names

This commit is contained in:
imSp4rky
2026-11-28 15:03:01 -07:00
parent 127e8e0dcc
commit 418d69b1ec
9 changed files with 115 additions and 10 deletions
+1 -1
View File
@@ -590,7 +590,7 @@ unicode_filenames: true
With each value, unshackle first normalises the name to Unicode NFC. A title that a service sends in composed form and in decomposed form gives the same name.
Regardless of this setting, unshackle always removes or replaces a set of filesystem-unsafe and structural characters during sanitisation. For example, `/` and `;` become ` & `, and unshackle removes characters like `\ * ! ? , ' " < > | $ # ~`. This is why you must never put path-unsafe characters directly in a template.
Regardless of this setting, unshackle always removes or replaces a set of filesystem-unsafe and structural characters during sanitisation. For example, `/` and `;` become ` & `, and unshackle removes characters like `\ * ! ? , ' " < > | $ # ~`. This is why you must never put path-unsafe characters directly in a template. To change other text in a name, such as `&` to `and`, use [`filename_replacements`](../reference/configuration/output.md#filename_replacements).
unshackle warns at startup about a template that contains `< > : " / \ | ? *`. It examines a folder template per path segment, so you can use `/` there as a directory separator.