You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: options.js
+23Lines changed: 23 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -90,6 +90,7 @@ const OPTIONS_INFO = {
90
90
"filename-template": {description: "Template used to generate the output filename (see help page of the extension for more info)",type: "string",defaultValue: "%if-empty<{page-title}|No title> ({date-locale} {time-locale}).{filename-extension}"},
91
91
"filename-conflict-action": {description: "Action when the filename is conflicting with existing one on the filesystem. The possible values are \"uniquify\" (default), \"overwrite\" and \"skip\"",type: "string",defaultValue: "uniquify"},
92
92
"filename-replacement-character": {description: "The character used for replacing invalid characters in filenames",type: "string",defaultValue: "_"},
93
+
"filename-replaced-character": {description: "The replaced character and the character(s) used for replacing the replacement character in filenames separated by a space, e.g. --filename-replaced-character \">\" _GT_ to replace \">\" with _GT_",type: "string[]",defaultValue: ["~ ~","+ +","? ?","% %","* *",": :","| |","\" "","< <","> >","\\\\ \","\\x00-\\x1f _","\x7F _"]},
93
94
"filename-max-length": {description: "Specify the maximum length of the filename",type: "number",defaultValue: 192},
94
95
"filename-max-length-unit": {description: "Specify the unit of the maximum length of the filename ('bytes' or 'chars')",type: "string",defaultValue: "bytes"},
95
96
"replace-emojis-in-filename": {description: "Replace emojis in the filename with their unicode text representation",type: "boolean"},
@@ -324,6 +325,28 @@ function parseArgs(args, setDefaultValues = true) {
0 commit comments