mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
minor cleanup and docs...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
1ee56fd580
commit
55fcdade33
@ -917,6 +917,8 @@ var FileSystemWriterActions = actions.Actions({
|
||||
// XXX resolve env variables in path...
|
||||
// XXX make custom previews...
|
||||
// ...should this be a function of .images.getBestPreview(..)???
|
||||
// XXX report errors...
|
||||
// XXX stop the process on errors...
|
||||
exportDirs: ['File/Export as nested directories',
|
||||
function(path, pattern, level_dir, size, logger){
|
||||
logger = logger || this.logger
|
||||
@ -942,6 +944,8 @@ var FileSystemWriterActions = actions.Actions({
|
||||
size = size || this.config['export-preview-size'] || 1000
|
||||
pattern = pattern || this.config['export-preview-name-pattern'] || '%f'
|
||||
|
||||
|
||||
// XXX need to abort on fatal errors...
|
||||
this.data.ribbon_order
|
||||
.slice()
|
||||
.reverse()
|
||||
@ -989,8 +993,11 @@ var FileSystemWriterActions = actions.Actions({
|
||||
.replace(/%I/, that.data.getImageOrder(gid, 'global'))
|
||||
|
||||
// tags...
|
||||
.replace(/%\((.*)\)m/, tags.indexOf('selected') >= 0 ? '$1' : '')
|
||||
.replace(/%\((.*)\)b/, tags.indexOf('bookmark') >= 0 ? '$1' : '')
|
||||
// XXX test: %n%(b)b%(m)m%e
|
||||
.replace(
|
||||
/%\((.*)\)m/, tags.indexOf('selected') >= 0 ? '$1' : '')
|
||||
.replace(
|
||||
/%\((.*)\)b/, tags.indexOf('bookmark') >= 0 ? '$1' : '')
|
||||
|
||||
// metadata...
|
||||
// XXX
|
||||
|
||||
@ -18,6 +18,7 @@ var object = require('lib/object')
|
||||
// XXX need a mechanism to either queue chains of tasks that depend on
|
||||
// on the previous results or a way to delay a task until what it
|
||||
// needs is finished...
|
||||
// XXX add fatal .abort(..) of queue...
|
||||
var QueueActions =
|
||||
module.QueueActions = actions.Actions({
|
||||
config: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user