<selitems> + ?tags:

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
eil
Posts: 1888
Joined: 13 Jan 2011 19:44

<selitems> + ?tags:

Post by eil »

kinda funny thing(but not really): i was the one to ask for search in list of pathes, and it was granted with Search in List, but now i'm stuck with using it and need help. :veryconfused:
i tried big number of variants composed with Help file examples, still can't do simple thing: make a check thought Tag database(meant switch /t in quicksearch) if any of the <selitems |> are there and save those in var. can anyone give me a tip?

can anyone give me a tip? i tried "+?* /t" pattern, no luck.
Win 7 SP1 x64 100% 1366x768|1900x1080

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: <selitems> + ?tags:

Post by TheQwerty »

I'm sorry but I've read your post a few times and am not sure what you want.

Can you try explaining what you're trying to accomplish again?

eil
Posts: 1888
Joined: 13 Jan 2011 19:44

Re: <selitems> + ?tags:

Post by eil »

basically it's like this: after i selected some items in list i want to find all tagged/labeled/commented items among them(recursively). <selitems |> should handle selected items, qiucksearch() looks for "tagged", and switch /t in my example ought to force search through tag-database only(making it much faster). either i'm doing something wrong, or something is broken, 'cause i'm sure by Help file in must work.

i already have an old/long way of doing this by getting items list and checking them with tag() one by one. but as i said it's slow, and due to new things Don made, new way should be superb.
Win 7 SP1 x64 100% 1366x768|1900x1080

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: <selitems> + ?tags:

Post by TheQwerty »

Try something like this perhaps?

Code: Select all

::text quicksearch('tagged /t', get('SelectedItemsPathNames', ';'));

eil
Posts: 1888
Joined: 13 Jan 2011 19:44

Re: <selitems> + ?tags:

Post by eil »

it does nothing, empty Text box.
yet, don't take it as offend(btw many thanks for taking your time!), but it's again "old ways". though i need to accomplish my search-task, i'm really interested in this new mechanic introduced, but it seems will have to wait for Don to come back.
Win 7 SP1 x64 100% 1366x768|1900x1080

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: <selitems> + ?tags:

Post by TheQwerty »

Ah.. I think I understand what you're after. (Don't know what I was thinking with that last example. :oops: )
Essentially, filter the current selection to just those that are tagged?

Maybe there is a better way to search for tagged items, but I gave up trying and opted for inverting a search for those not tagged. :?

As an actual quick search this should work:

Code: Select all

+?!tags:""
If you want to script that put it in a goto:

Code: Select all

goto '+?!tags:""
It seems Quick Search does not support the list/selected items shortcuts so if you want to use the quicksearch SC this should do:

Code: Select all

text quicksearch('!tags:""', get('SelectedItemsPathNames'));
Since you're searching through the selected items I'm not sure the '/t' switch really does much here, but you can experiment and report back. ;)

admin
Site Admin
Posts: 66656
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: <selitems> + ?tags:

Post by admin »

In the next version SC quicksearch supports # and + in the path argument. This should work then:

Code: Select all

text quicksearch('!tags:""', "+");

eil
Posts: 1888
Joined: 13 Jan 2011 19:44

Re: <selitems> + ?tags:

Post by eil »

want to clarify: !tags: "" -what does it mean logically? looks like double-No..
yet, as i'm not sure if it's clear, i'm aiming not on text = search results are desired in new tab, as usual.
strange anyway, i thought that with <selitems ;> such search is already possible. same with "search for tagged items in tag database".
Win 7 SP1 x64 100% 1366x768|1900x1080

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: <selitems> + ?tags:

Post by TheQwerty »

eil wrote:want to clarify: !tags: "" -what does it mean logically? looks like double-No..
It is a double-No.

Not items with no tags = Items with any tags.

eil
Posts: 1888
Joined: 13 Jan 2011 19:44

Re: <selitems> + ?tags:

Post by eil »

i don't know what bad magic following this request, but still no luck to make it :cry:
looks like SIL is not working as intended, only collecting items..
Win 7 SP1 x64 100% 1366x768|1900x1080

admin
Site Admin
Posts: 66656
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: <selitems> + ?tags:

Post by admin »

You mean this?

Code: Select all

text quicksearch('!tags:""', "+");
Works well here (v15.80.0108).

eil
Posts: 1888
Joined: 13 Jan 2011 19:44

Re: <selitems> + ?tags:

Post by eil »

ah, now i see= from the start of thread i remind that i'm looking for "all tagged items" = all present in tag database(meant labels and comments included). current version works for tags, confirmed, but i thought there must be easier way than making 3 checks/searches -just check if file is in database..
yet, i'm interested: isn't there a way to open results in Search-Tab like with Click and Search?
Win 7 SP1 x64 100% 1366x768|1900x1080

admin
Site Admin
Posts: 66656
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: <selitems> + ?tags:

Post by admin »

To see all items in the tag DB in the current location, simply do this Quick Search (results will be listed in the list):

Code: Select all

tags:*
Or this via Address Bar:

Code: Select all

?tags:*
Meaning is: Find all items in the DB that have tags or not (* means "anything or nothing"). Result: All items in the DB.

To see all items in the tag DB (in any location, i.e. the complete DB), use this via Address Bar:

Code: Select all

*?tags:*
FYI, the first * is an alias for "This PC".

eil
Posts: 1888
Joined: 13 Jan 2011 19:44

Re: <selitems> + ?tags:

Post by eil »

i must say sorry, 'cause i probably got you bored already(or mad :roll: ), but again= i need to find all items present in database among those i selected.
in other words: i select some files and folders in list with mouse, then i need to find all tagged/commented/labeled among them(sub-folders included, so recursively).

and yeah, i know about ?tags:* , tried it with <selitems ;> =that was no luck.
Win 7 SP1 x64 100% 1366x768|1900x1080

admin
Site Admin
Posts: 66656
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: <selitems> + ?tags:

Post by admin »

OK, now I see it. Yes, does not work. Returns all selected items. I look into it right now...

EDIT: Fixed. Next beta...

Post Reply