Page 1 of 1

Internal associations: individual icons and predefined selection types

Posted: 2019-11-14, 01:43 UTC
by Stiltzkin
Reviving an old suggestion:
Lefteous wrote: 2018-02-02, 08:22 UTC I support the idea of individual icons per filetype in internal associations. It could work like this.
FilterX.icon=PATH_TO_FILTER_X_ICON
works as the default icon for all icons covered by this association. On top of this logic let the user define filetype-specific icons. Something like:
FilterX.icon.bmp=PATH_TO_BMP_ICON or even
FilterX.icon.jp*g=PATH_TO_JPEG_ICON
Just to elaborate a little more:

Code: Select all

[Searches]
MyImageFormats_SearchFor=*.bmp *.gif *.jpg *.png *.psd *.tif *.tiff *.tga *.svg *.jpeg *.webp

[Associations]
Filter5=>MyImageFormats
Filter5_open=%commander_path%\irfanview.exe "%1"
Filter5_Paint=%commander_path%\mspaint.exe "%1"
Filter5.icon=%commander_path%\imageformat_default.ico
Filter5.icon.bmp=%commander_path%\bmp.ico
Filter5.icon.png=%commander_path%\png.ico
Filter5.icon.jpg=%commander_path%\jpg.ico
update: maybe even icons for the "actions:" in the the windows contextmenu :?:

Re: Internal associations: individual icons and predefined selection types

Posted: 2019-11-14, 07:55 UTC
by MVV
It is esy to do with TC 9.50: just define icons for specific file types in separate internal associations, and use multi-type one for assosiating with programs.

Re: Internal associations: individual icons and predefined selection types

Posted: 2019-11-14, 12:20 UTC
by Stiltzkin
like this?

Code: Select all


[Searches]
MyImageFormats_SearchFor=*.bmp *.gif *.jpg *.png *.psd *.tif *.tiff *.tga *.svg *.jpeg *.webp

[Associations]
Filter1=>MyImageFormats
Filter1_open=%commander_path%\irfanview.exe "%1"
Filter1.icon=%commander_path%\imageformat_default.ico

Filter2=*.png
Filter2.icon=%commander_path%\png.ico

Filter3=*.jpg
Filter3.icon=%commander_path%\jpg.ico
doesn't work for me. no matter in which order i put the associations either the icon is not showing or it is and the association is not working.

Re: Internal associations: individual icons and predefined selection types

Posted: 2019-11-15, 02:30 UTC
by petermad
2Stiltzkin

Try this:

Code: Select all

[Associations]
Filter1=*.png
Filter1.icon=%commander_path%\png.ico

Filter2=*.jpg
Filter2.icon=%commander_path%\jpg.ico

Filter3=>MyImageFormats
Filter3_open=%commander_path%\irfanview.exe "%1"
Filter3.icon=%commander_path%\imageformat_default.ico

Re: Internal associations: individual icons and predefined selection types

Posted: 2019-11-15, 21:18 UTC
by Stiltzkin
i tried. then the icon is displayed correctly but the association isn't working anymore. the default windows association is used.

Re: Internal associations: individual icons and predefined selection types

Posted: 2019-11-16, 12:33 UTC
by petermad
Then this:

Code: Select all

[Associations]
Filter1=*.png
Filter1_open=%commander_path%\irfanview.exe "%1"
Filter1.icon=%commander_path%\png.ico

Filter2=*.jpg
Filter2_open=%commander_path%\irfanview.exe "%1"
Filter2.icon=%commander_path%\jpg.ico

Filter3=>MyImageFormats
Filter3_open=%commander_path%\irfanview.exe "%1"
Filter3.icon=%commander_path%\imageformat_default.ico

Re: Internal associations: individual icons and predefined selection types

Posted: 2019-11-16, 16:16 UTC
by Stiltzkin
yes, of course that will work.
but that's not what i was suggesting. in this case i still have to define the "open" cmd for all individual extensions.

Re: Internal associations: individual icons and predefined selection types

Posted: 2019-11-17, 01:06 UTC
by petermad
in this case i still have to define the "open" cmd for all individual extensions
Yes, if you want differnt icons for all of the filetypes in >MyImageFormats - not just for .jpg and .png

Re: Internal associations: individual icons and predefined selection types

Posted: 2019-11-18, 06:09 UTC
by MVV
I would expect merging these parameters of internal associations too, that would be quite useful sometimes.