Based on a simpler parameterless macro I use that does work: `column1:=regex_extract($stem:,"^..") column1: dupe:column1 groupcolors:`
My experience with macros based on creating columns is that they're quite moody, they can work one second and then not work the second after. If a solution avoided it, that'd probably be better.
- nopath:len:>=$param: makes sure filename length is at least $param: characters long (5 in the example)
- addcol:A is oiptional (makes it easier to check if it's working OK
Does it work on your machine? It doesn't on mine. I tried your two examples and some more.
I said addcol was moody but I think it's actually defining variables that is very moody, specially if I use the same identifier repeatedly. I didn't get this macro to work, but when I had issues with it, it'd work one minute but not the next. I'm not sure if there's a way to prevent this moodiness?
Thanks for the feedback, so the issue is on my end.
Version: Version 1.5.o.1403a (x64) , (version 1.5.0.1409 just became available)
Macro: Turning `regex:stem:(.{$param:}) dupe:1 add-column:1` into a macro `test123`, and querying `test123:4 ` works. I get an extra column that correctly displays the first 4 characters.