Not really sure if anyone has suggested this or something similar before as a forum search yielded no relevant topics. So here is the deal:
I'm often in a situation where I have many machine generated files in a folder with names like:
[0000-00-00] Some Name [PID_123]
Regex-coloring of files works great but if I want to sort by a specific code or identifier I have to rename all files with a script and a different one at that, for each property I want to sort or group by. And no using filters does not help with sorting.
The ability to add custom columns (in details view) based on a simple regex of the filename would allow me to do this:
Variant 1: Each custom column does it's own regex matching against the filename
\[(PID_\d*)] -- Column gets the value of backreference one which is the pid
\[(\d*)\] -- Column gets the numeric id value and so on.
Variant 2: Single regex with named capturing groups and each named group appears as a custom column:
Variant 1 would allow more flexibility when regexing "unlike filenames" not having the same pattern but would be taxing if we have too many such columns defined.
Variant 2 would be faster but would only work on filenames which have the exact schema so the ability to specify multiple reg-exes would be a good thing as well.
IMO the ability to specify multiple sets of such columns and to limit queries to specific folders would be useful in the long run.
Since Dopus is already doing heavy regexing for the color labels and there is no perceived performance hit whatsoever I figured it wouldn't be a problem performance-wise.
I am interested if anyone finds this to be a useful feature as I do and if the cost of implementing it would be too high for it not to appear in the next major dopus revision. Thank you.