file generator
this is a simple extension that lets you generate files from a .yaml config file.
the option appears in the context menu in the toolbar at the top of your screen.
features:
the card field represents which files are to be generated.
*a-b - range of numbers as filenames, e.g. *1-3 results in 1 , 2 and 3
a|b|c - pipe-seperated filenames, e.g. foo|bar|baz results in foo , bar and baz
<group> - grouping, e.g. <*1-3>.foo results in 1.foo , 2.foo and 3.foo
all other strings are interpreted as themselves, e.g. foo.bar results in foo.bar
in the text field, there are many preprocessed directives you can enter.
%%path%% - full file path, e.g. c:foo/bar.txt
%%filename%% - full file name, e.g. bar.txt
%%ext%% - file extension, e.g. txt
%%name%% - %%filename%% minus extension, e.g. bar
%%index%% - the zero-index number representing when this file was processed
%%eval {mathjs expression}%% - evaluate maths using mathjs expressions
the path field is just the parent folder. this defaults to the parent directory of the file clicked on in the context menu.
| |