Page 1 of 1

Searching for And Adding New File Categories

Posted: 28 Jun 2018 08:35
by u828576
> Hi guys
>
> Does it support categories adding and searching....
>
> Many thanks
>
> Philip
>

Re: Searching for And Adding New File Categories

Posted: 28 Jun 2018 09:29
by jupe
You can't add categories per say as AFAIK, but the search is mega powerful, so you could make saved search templates that have something like this in name field

/types=jpg;bmp;ico

and make that a catalog item or a button or anywhere else that accepts input to launch the search, therefore creating unnamed quasi-categories.

Re: Searching for And Adding New File Categories

Posted: 28 Jun 2018 11:17
by u828576
Thanks for the reply.

I want to add categories to the actual file just like you do in outlook and then search for them.

Is it similar to what you suggested

Re: Searching for And Adding New File Categories

Posted: 28 Jun 2018 16:19
by Nighted
Wouldn't using tags achieve this?

Re: Searching for And Adding New File Categories

Posted: 28 Jun 2018 22:14
by jupe
Your initial question was very vague, I misunderstood and thought you meant you wanted to add a set of certain files to this listing (that I refer to as file categories):

Image

but yes you can tag and label files and search for them, here is a brief overview of only some of the possibilities:

https://www.xyplorer.com/release_14.10.php#CAS
https://www.xyplorer.com/release_10.90.php#tagging

the search features are near limitless, but just try the app, the help file will guide you.

Re: Searching for And Adding New File Categories

Posted: 29 Jun 2018 09:22
by u828576
Agree, a little vague.

Looks very powerful. Will there be a future ability to filter search the tags in the interface so that you dont have to manually scroll to the relevant tag each time you want to assign that particular tag to a file.?

Re: Searching for And Adding New File Categories

Posted: 29 Jun 2018 09:28
by jupe
you can add like this in the name field to search:

tags:Red

or even the address bar like this ?tags:Red

try entering the following in the XY address bar for more info:

Code: Select all

::help "idh_find.htm#idh_findfilesbytags";
To assign tags easier, you can make the Tags column visible and do it from there, or the toolbar buttons, or a catalog item etc, there are many easy ways to do it rather than the info panel, the help file is your friend.

Re: Searching for And Adding New File Categories

Posted: 29 Jun 2018 10:07
by highend
For tagging you could use a filterable list, like within this script:

Code: Select all

    $tagSep = getkey("TagsSeparator", "Settings");
    if ($tagSep == "") { $tagSep = ","; }

    $tagDB = "<xydata>\tag.dat";
    if (exists($tagDB) != 1) { status "No tag.dat file found, aborted!", "8B4513", "stop"; end true; }
    $content = readfile($tagDB);
    $tags = gettoken($content, 2, "Data:<crlf>");
    $tags = regexreplace($tags, "(^.+?\|\d+\|)");
    $tags = formatlist(regexreplace($tags, "\|.*?(?=\r?\n|$)"), "sed", <crlf>);
    if !($tags) { status "No tag(s) found in database, aborted!", "8B4513", "stop"; end true; }
    $sel = inputselect("Choose tag(s)", $tags, <crlf>, 2+4+32+64, , 600, 600);
    if !($sel) { status "No tag(s) selected, aborted!", "8B4513", "stop"; end true; }
    tagitems("tag", replace($tags, <crlf>, $tagSep));