Code: Select all
d:\test\*.txt addcol:a a:=$name: set value $name when result count<10 (which means less than 10 txt files in the folder), set value "" otherwise
reason: When the search filter is loose, lots of results are returned. There is no need to calculate column A.
When more search words are typed in, restriction gets tight. Results are narrowed down. It's time to calculate column A. And it's time to filter them further as shown in question2.
question2:
filter result based on column A. like a:xxx to return items with xxx in column A.
xxx can have two or more words, logical support is better: (a OR b), (a AND b)
question3:
highlight string xxx in column A. logical support is better.