highend wrote: ↑27 Jan 2021 17:39
Mixed items are fine, I talked about multi-path only selections...
Apart from that, the gui does the same and quicksearch() just "imitates" it...
but it's not fine, quicksearch works quite unpredictable for me..
here's structure i use for experiment with selection(all selected items are on same level)
2021-01-27_202110.png
each time same script only search pattern changed:
searching
"t" in name = 0 level included and found
Code: Select all
$selItems = <get SelectedItemsPathNamesSlashed |>;
$tags = quicksearch("*t*", "$selItems", "<crlf>");
echo $tags;
2021-01-27_202724.png
searching
"i" in name = 0 zero level included and found
Code: Select all
$selItems = <get SelectedItemsPathNamesSlashed |>;
$tags = quicksearch("*i*", "$selItems", "<crlf>");
echo $tags;
2021-01-27_202651.png
searching tagged(
tags:*) items = 0 level folders skipped
Code: Select all
$selItems = <get SelectedItemsPathNamesSlashed |>;
$tags = quicksearch("tags:*", "$selItems", "<crlf>");
echo $tags;
2021-01-27_203226.png

yet it's truly strange logic that if i select 100 folders, i can't search among them itself(0 level) as it's multi-location-search, but if i simply add 1 file to this list - 0 level folders are in search results(at least for names).

To see the attached files, you need to log into the forum.