Page 1 of 1
Quicksearch() Multi-location to include zero-level folders.
Posted: 30 Jan 2021 14:04
by eil
Currently if one selects some mixed list of items(folders and files) and uses quicksearch(), selected folders are "excluded" from search list. Yep, i understand Multi-location search takes selected folders as paths for search, but it's quite strange in behaviour and makes user lose part of searching information.
Example: i select 8 files and 15 folders, use quicksearch(), 8 selected files take part in search, all subs of folders takes part in search, but these 15 selected folders don't. As quicksearch() has quite a lot of switches to make Any search one may need(with all /maxdepth, /flags, /excl), it's rather frankly that there is no way to simply select 20 files, 50 folders and search among them taking no subs in consideration at all.
basically i ask about i switch/flag to search among selected folders too, not only their subs.
Re: Quicksearch() Multi-location to include zero-level folders.
Posted: 09 Feb 2021 16:41
by admin
eil wrote: ↑30 Jan 2021 14:04
Currently if one selects some mixed list of items(folders and files) and uses quicksearch(), selected folders are "excluded" from search list. ...

excluded? Don't know what you mean.
Re: Quicksearch() Multi-location to include zero-level folders.
Posted: 09 Feb 2021 21:08
by eil
admin wrote: ↑09 Feb 2021 16:41

excluded? Don't know what you mean.
straight example: lets say there are 100 folders, i select only 20 to search all tagged items, that is Multi-location search apparently, so all selected folders are used as locations to search IN but not as folders themselves, and if among those 20 selected folders there are tagged ones(or any other search criteria) those aren't in search results(which "kinda loses" part of results).
one may say "well it's part of Multi-location Search logic, everything's right", but if i select same 20 folders and 10 files, make same search for tagged items, if there are any tagged ones among those 10 files on zero level of search, they ARE in search results, but folders apparently aren't checked to match criteria(only each taken as location to search in subs).
so please improve Multi-location search to check selected folders too(not only subs of these selected folders).
Re: Quicksearch() Multi-location to include zero-level folders.
Posted: 10 Feb 2021 10:55
by admin
I see, good point.

Just implemented it. The switch will be "t".
Re: Quicksearch() Multi-location to include zero-level folders.
Posted: 10 Feb 2021 17:59
by eil
if only this search query is not right, i can't seem to make new flag work for searching tagged items.
Code: Select all
$selItems = <get SelectedItemsPathNamesSlashed |>;
echo quicksearch("tags:*", "$selItems", , "t");
searching by simple queries, like names, works good.
Re: Quicksearch() Multi-location to include zero-level folders.
Posted: 11 Feb 2021 10:47
by admin
Confirmed. Fixed in next beta.