Updated todo list
To wrap the (+) chain in parentheses, you’d modify lines 98-100:
Current code:
if (plusDirs.length > 0) {
result += plusDirs.join(" + ") + " + ";
}Change to:
if (plusDirs.length > 0) {
result += "(" + plusDirs.join(" + ") + ") ";
}Or using template literals for cleaner syntax:
if (plusDirs.length > 0) {
result += `(${plusDirs.join(" + ")}) `;
}This will produce output like:
(dir1 + dir2 + dir3) beforeFile- Or with
@prefix:beforeAt: (dir1 + dir2) beforeFile - Or with
&chain too:dir1 & dir2 & (dir3 + dir4) beforeFile
The key changes are: