- Concat: / Concatenate:
-
add-column:A A:=[concat:$ext:," File"]
Expected : png File
Actual : pngFile -
add-column:A A:=[concat:" ",$ext:,"\s \s File"]
Expected : png \s \s File or png File (something/anything with spaces)
Actual : png\s\sFile -
add-column:A A:=[concat:" ",$ext:," "," "," File"]
Expected : png File
Actual : pngFile -
add-column:A A:=#[concat:$ext:," File"#]:
Expected : png File
Actual : png, File (close, but now has a comma) -
add-column:A A:=[concatenate:$ext:,#[[:" File"#]]:]
Expected : png File
Actual : pngFile
-
- TextJoin:
-
add-column:A A:=[textjoin:" ",1,$ext:," File"]
Expected : png File
Actual : pngFile -
add-column:A A:=[textjoin:" ",1,$ext:,"\s \s File"]
Expected : png \s \s File or png File (something/anything with spaces)
Actual : png\s\sFile -
add-column:A A:=[textjoin:" ",0,$ext:," "," "," File"]
(notice set ignore-empty to 0 this time, also tried with spaces before & after commas)
Expected : png File
Actual : pngFile -
add-column:A A:=#[textjoin:" ",0,$ext:," File"#]:
Expected : idk just throwing stuff at the wall to see if anything works
Actual : (nothing) -
add-column:A A:=#[:textjoin:" ",0,$ext:," File"#]:
(it treated it mostly as literal text, except $ext: was replaced properly, which gave me the idea to try the next few case)
Expected : idk, just testing
Actual : textjoin: ,0,png, File -
add-column:A A:=#[:[textjoin:" ",0,$ext:," File"]#]:
Expected : idk, just testing
Actual : pngFile (back to original result) -
add-column:A A:=#[textjoin:" "#,:0#,:ext:#,:" File"#]:
ie: #[function:arg1#,:arg2#,:arg3#,:...#]: syntax
I tried many different variations of this... wrapping/placing/removing $ < > # ] [ : in different spots.
Expected : idk, just testing
Actual : png#,: File#]:
-
Goal:
To exclude files the system doesn't recognize.
Files that are recognized, have Types such as: "Document", "Wave Sound", "C Source File", etc.
Files that are unrecognized typically have a Type of "${extension} File" or "File".
- So I'm trying to filter them with:
file: !exact:type:[concat:UPPERCASE($ext:)," File"]
(textjoin is actually what I want. Neither work though) - OR:
file: !type:TEXTJOIN(" ",0,UPPERCASE($ext:),"File")- Using only ColumnForumlas doesn't work which is why I assume I needed to use SearchPreprocessor syntax.
The lack of it preserving spacing when joining strings + seemingly other issues, appears to make this goal unattainable.
What Does Work:
-
add-column:A A:=CONCAT(UPPERCASE($ext:)," File")
But why doesn't it work as documented in SearchPreprocessor viewtopic.php?t=10099 ?
So it does work for columns, however it DOESNT work for: file: exact:type:CONCAT(UPPERCASE($ext:)," File") -
add-column:A A:=TEXTJOIN(" ",0,UPPERCASE($ext:),"File")
But why doesn't it work as documented in SearchPreprocessor viewtopic.php?t=10099 ?
So it does work for columns, however it DOESNT work for:- file: !exact:type:TEXTJOIN(" ",0,UPPERCASE($ext:),"File")
- file: type:[TEXTJOIN(" ",0,UPPERCASE($ext:),"File")
- file: !exact:type:#[:TEXTJOIN(" ",0,UPPERCASE($ext:),"File")#]:
file+: add-column:A,B A:=TEXTJOIN(" ",0,UPPERCASE($ext:),"File") B:=#<:$A:#>: !type:#<:$A:#>:ColumnB is assigned to verify syntax.
file+: add-column:A,B A:=TEXTJOIN(" ",0,UPPERCASE($ext:),"File") B:=#<:$A:#>: !type:#<:$A:#>: distinct:Type regex:extension:"^[a-z]+\d?$"In the screenshot I used the above query in order to get more examples. Curious, why is "distinct:Type" not doing what I expected? It mostly works, but not entirely. Also found
regex:extension:"^[a-z]+\d?$"regex:ext:"^[a-z]+\d?$"NOTE: You may have notice I used "file+:". That's a Bookmark that just adds/removes columns specific to files.