How to use a filter-expression in the folder-filter?

Started by Gerd, October 24, 2013, 11:57:28 AM

Previous topic - Next topic

Gerd

Hi,

I want to create a filter, that I can use in the Media&Filter-View/Folder Filter-window/Filter:  to get only folders, that contain e.g. the name Canon.

My idea was, to get all folders marked in the Filter-Panel/Folders, that contain the name Canon. I thought, it is enough to fill in the name Canon in the field "Filter Expression", but that does not work. Also in the help-file I did not found an example for the usage here ...

What have I to do?
_______
Regards
Gerd

Mario

I assume you mean the filter panel shown below the Media & Folder tree, right?

The filters works very simple. If you type in Canon the folder tree will only show folder names containing Canon.

Note: This works on the real folder name, not friendly folder names. Just in case you have this enabled.

Or do you mean the Folder Filter in the Filter Panel? Here you can choose folders via their check boxes.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

ChrisMatch

I assume Gerd meant this one...

[attachment deleted by admin]

ChrisMatch

another thought:
if you use a folder filter you can only filter on a fix set of folders
if a new folder containing the name 'Canon' appears, it would not be part of the filter

so maybe you would like to use the 'FileName' filter with the option 'also search in folder names'  (of course this would also show images that contain that stirng)

[attachment deleted by admin]

Gerd

Hi,

first I have the complete full-path-structure in Media&Folders (screenshot1),

but when I fill in something in the Filter-field, I come to the second screenshot ...

What do I wrong? I thought, that I now get a folder-list with only path-names, that contain "D\Canon" ... This is, what normaly a filter does ...

[attachment deleted by admin]
_______
Regards
Gerd

Mario

You entered

D\Canon

(Missing : and the filter works on folder names and not paths.

Just enter Canon to find all folders containing the word Canon.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

ChrisMatch

and the result will vary whatever option you use (contain, regex,...)

[attachment deleted by admin]

Gerd

Hi,

first screenshot shows with empty filter

second screenshot shows, what I see after using "Canon" and "contains"

third screenshot shows the unfolded folders from second screenshot.

And here you can see, why these paths are found and displayed, because they contain sub-paths, where some folders in the path contains "Canon" in the last folder of the path.

I thought, the whole path-name would be used ...

[attachment deleted by admin]
_______
Regards
Gerd

Mario

If you use contains, the filter does exactly that: When the folder name contains the search term anywhere, it is considered a match. Quick and easy.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

Gerd

... and why are all my folders disappeared, which contain "Canon" in the middle of the path???
_______
Regards
Gerd

thrinn

I think the question is:
Why is e.g. the folder xbeb\D\Canon\40D (on drive C:) not displayed, using Gerd's settings?
Should this folder not be matched by an Contains / Canon filter?


Thorsten
Win 10 / 64, IMatch 2018, IMA

Mario

What happens if you disable the option to show full path on top level?
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

Gerd

First, without entry in filter-field, second with entry "Canon" in filter-field ...

[attachment deleted by admin]
_______
Regards
Gerd

Mario

I guess the DCAM folder has a sub-folder containing "Canon" right?
So IMatch shows all folders containing the word Canon or not? I can't tell from the screen shot?

The filter works on the names you see on each level, not the entire path!

If there is a folder "c:\Canon\bla\abc" but you only add the folder "bla\abc" to your database, the term Canon will never show up in the database and thus cannot be found by the folder filter. The filter sees only

C:
|- bla
    |- abc


I have changed the filter function now so that it respects the "Use full path on first level" if this is enabled. But this will not change the working of the filter function. The filter function looks at each tree node individually and if one of the nodes matches the filter term, the node (and all its parent nodes) will be shown in the tree.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

Gerd

Hi,
using your example:

if I fill in bla, nothing is found, only if I type in abc, then bla\abc is found.

Will check in the next release!
_______
Regards
Gerd

Mario

Just tried my example. Works here. Please check if you have selected the "contains" filter mode, not "starts with" or something.



[attachment deleted by admin]
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook