I've added better formatted total file/folder size columns with Evaluator
And when I replace the current view with the default count s with these, it's fine, I get all the numbers with 0's replaced and new headers
But then if I refresh, it's all gone, the columns are blank.
I've restarted Opus completely, the numbers are back, ("Locked status" was due to some filter matches that got reset to empty matches for some reason, so they matched any status)
If I refresh the view:
the numbers might be all gone again
or only they might all come back
or only the first line might lose the values, others still have them
The default counts never disappear
Tried toggling "Preferences / File Display Columns / Evaluator Columns / Refresh if file changes", doesn't help, only maybe the first time after Apply the numbers might come back
Code for columns
<?xml version="1.0"?>
<evalcolumn align="1" attrrefresh="no" autorefresh="no" category="size" foldertype="all" header="π" keyword="count_folder" maxstars="5" namerefresh="no" reversesort="no" title="Folder count β" type="0" width="1">// v1@23-12 Total Folder Count with '0' replaced with a custom symbol '.' and a shorter header πππ
if (dircounttotal == 0 ) {return ".";
} else {return dircounttotal;}
</evalcolumn>
<?xml version="1.0"?>
<evalcolumn align="1" attrrefresh="no" autorefresh="no" category="size" foldertype="all" header="π" keyword="count_file" maxstars="5" namerefresh="no" reversesort="no" title="File count β" type="0" width="1">// v1@23-12 Total File Count with '0' replaced with a custom symbol '.' and a shorter header πππ
if (filecounttotal == 0 ) {return ".";
} else {return filecounttotal;}
</evalcolumn>
I'm, 0 is too noisy to signal nothing, other values stand out more if you hide nothing as . (maybe blank could also work if there are no delays and you are certain not to have to guess "is it not calculated or is it 0", needs testing)
their headers are huge, you don't need to read the whole sentence to get the meaning of a column you see every day that can be conveyed with a single symbol!
I was also planning to cut the huge numbers. If there are 10,243,192,234 files, I don't usually care about all those 243,192,234 (and don't like the comma separator, a comma-width space is better), and when I do, I think I'll add the exact count in a tooltip instead
That seems to be correct, this code always outputs n/a since if (!IsSet(dircounttotal)) { return "n/a"; }
<?xml version="1.0"?>
<evalcolumn align="1" attrrefresh="no" autorefresh="no" category="size" foldertype="all" header="π" keyword="count_folder" maxstars="5" namerefresh="no" reversesort="no" title="Folder count β" type="0" width="1">// v1@23-12 Total Folder Count with '0' replaced with a custom symbol '.' and a shorter header πππ
if (!IsSet(dircounttotal)) { return "n/a"; }
if (dircounttotal == 0 ) {return ".";
} else {return dircounttotal as str;}
</evalcolumn>
How can I make it wait until the values it requests are actually ready instead of happily running as is?
When it works, I don't see any flashes, but then in some longer folder lists I see only the last 4 items with numbers, the first 20 with n/as. And if I change sorting, it follows (so last 4 items have numbers, first 20 don't even if they are now different items)
I think Leo has identified the root cause correctly, the columns are racing with metadata gathering and sometimes they win and show nothing
Seems to be better, the columns still evaluate first, but if you return with an empty string (instead of n/a it's not an issue?)
Meanwhile also found a better tiny dot βΈ± (likely font-dependent)