Closed pgrimsehl closed 6 years ago
Hey @pgrimsehl!
Love all the suggestions, and I can see the use cases.
Added in commit 14d3beb7d0523366b059c53577a02309e264c64c . The XML element name is TemplateFilesPath. The path is relative to the project location, though.
Added in commit 4a3c6eda4287be4d80fdf2cc51d5cb2971f5edf2 .
Added in commit 64c5efc91ef9188d5c9b1aa0a5d6478dbd466f17 .
Hi there :)
I'd like to see some changes/improvements to the current export template handling.
<FileSetPath>./template/INI File</FileSetPath>
. So 'INI File' would be the the base name for the files. If the path is relative, it should be interpreted as relative path to the .texport file location, not the .tproj location.<DefaultFileName></DefaultFileName>
, where we can define the name that will be displayed in the file dialog after selecting an export template in Tome. Right now the name of the project will be used, which is not the export file name in many cases.<IncludedRecords></IncludedRecord>
, which is used similar to the<IgnoredRecords>
element. The motivation to add such an element is the above mentioned use case (multiple .ini file export). Right now, we have to explicitly define all records we do NOT want to export. So if we have a project with 10 record groups, and want to export each group as one .ini file, we need to explicitly exclude 9 records in all other 9 .texport files. This is cumbersome and error-prone. And even worse, if we have to add another record group later, we have to update all existing .texport files to NOT export this new record. The<IncludedRecords>
could work the following way: if the element is empty, the filter is not applied at all. If it contains elements, each record is checked against the items listed in the element during the export process, If a name matches the record name OR one of the record's ancestors, it will be selected for export. After the applying the include filter, the ignore list will be processed as usual - so ignore always wins.What do you think about these changes?