1. start "find files" tool (Alt+F7)
2. define two filters as:
Code: Select all
first_SearchFor=*.png *.bmp
second_SearchFor=*.jpg *.png
4. add two associations for these filters:
Code: Select all
[Associations]
Filter1=>first
Filter1_open=**
Filter1_XnView=D:\totalcmd\tools\media\XnView\xnview.exe "%1"
Filter2=>second
Filter2_open=**
Filter2_irfan=D:\totalcmd\tools\media\IrfanView\I_VIEW32.EXE "%1"

6. find any *.png file and open RMB context menu or call for cm_ContextMenuInternal.
Only the first item will be shown! When file matches two different filters only the first one is applied what is wrong IMHO.
Notes:
It makes assigning applications harder than expected.
There are two possible ways of defining what should happen with given extension:
- define one extension as rule and choose various applications for it,
- define set of extensions and call one application for it only.
Although first way seems to be more logical, the second one is a lot easier for the most of the software. I.e. XnView handles 400 files formats so it would be better to create few filters (due to filter length limit) for it first instead of browsing through all of file types. First approach is good for rare extensions only (or if you have small number of tools).
P.S. I know we are in RC stage and nothing new should be added but wouldn't it be better to indicate associations somehow (i.e. by implementing tc->IsAssociated field)?