mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-12-16 08:11:39 +00:00
cleanup + docs...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
83623ac722
commit
3f841c109a
@ -1836,11 +1836,8 @@ var FileSystemWriterActions = actions.Actions({
|
|||||||
|
|
||||||
%(...)m - add text in braces if image marked
|
%(...)m - add text in braces if image marked
|
||||||
%(...)b - add text in braces if image is bookmark
|
%(...)b - add text in braces if image is bookmark
|
||||||
`/*
|
|
||||||
%(...)C - add text in braces if there are name conflicts
|
%(...)c - add text in braces if there are name conflicts
|
||||||
with other images in current index.
|
|
||||||
NOTE: this will be added to all images.
|
|
||||||
*/+` %(...)c - add text in braces if there are name conflicts
|
|
||||||
present in current index, but only if the current
|
present in current index, but only if the current
|
||||||
image has a conflicting name.
|
image has a conflicting name.
|
||||||
%c - number in set of conflicting names (default: 0).
|
%c - number in set of conflicting names (default: 0).
|
||||||
@ -1975,9 +1972,6 @@ var FileSystemWriterActions = actions.Actions({
|
|||||||
// /%\(([^)]*)\)k/, tags.indexOf('bookmark') >= 0 ? '$1' : '')
|
// /%\(([^)]*)\)k/, tags.indexOf('bookmark') >= 0 ? '$1' : '')
|
||||||
|
|
||||||
// in conflicts...
|
// in conflicts...
|
||||||
// XXX do we need the %(..)C here, as it is the same as setting %c?
|
|
||||||
//.replace(
|
|
||||||
// /%\(([^)]*)\)C/, conflicts ? '$1' : '')
|
|
||||||
.replace(
|
.replace(
|
||||||
/%\(([^)]*)\)c/, (conflicts || {})[gid] ? '$1' : '')
|
/%\(([^)]*)\)c/, (conflicts || {})[gid] ? '$1' : '')
|
||||||
// out conflicts...
|
// out conflicts...
|
||||||
@ -2000,9 +1994,14 @@ var FileSystemWriterActions = actions.Actions({
|
|||||||
|
|
||||||
+ to_ext }],
|
+ to_ext }],
|
||||||
formatImageNameIter: ['- File/Format image filename (iter)',
|
formatImageNameIter: ['- File/Format image filename (iter)',
|
||||||
core.doc`Same as .formatImageName(..) but returns an iterator advancing the %f value.`,
|
core.doc`Same as .formatImageName(..) but returns an iterator advancing
|
||||||
|
the %f value.
|
||||||
|
|
||||||
|
data.number sets the initial count for %f
|
||||||
|
|
||||||
|
`,
|
||||||
function*(format, name, data){
|
function*(format, name, data){
|
||||||
var n = 0
|
var n = data.number ?? 0
|
||||||
var prev, cur
|
var prev, cur
|
||||||
while(true){
|
while(true){
|
||||||
cur = this.formatImageName(format, name, {__proto__: data, number: n++})
|
cur = this.formatImageName(format, name, {__proto__: data, number: n++})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user