Internal associations: individual icons and predefined selection types

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Stiltzkin
Member
Member
Posts: 182
Joined: 2004-09-10, 17:15 UTC

Internal associations: individual icons and predefined selection types

Post 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 :?:
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Re: Internal associations: individual icons and predefined selection types

Post 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.
Stiltzkin
Member
Member
Posts: 182
Joined: 2004-09-10, 17:15 UTC

Re: Internal associations: individual icons and predefined selection types

Post 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.
User avatar
petermad
Power Member
Power Member
Posts: 14741
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Internal associations: individual icons and predefined selection types

Post 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
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Stiltzkin
Member
Member
Posts: 182
Joined: 2004-09-10, 17:15 UTC

Re: Internal associations: individual icons and predefined selection types

Post by *Stiltzkin »

i tried. then the icon is displayed correctly but the association isn't working anymore. the default windows association is used.
User avatar
petermad
Power Member
Power Member
Posts: 14741
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Internal associations: individual icons and predefined selection types

Post 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
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Stiltzkin
Member
Member
Posts: 182
Joined: 2004-09-10, 17:15 UTC

Re: Internal associations: individual icons and predefined selection types

Post 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.
User avatar
petermad
Power Member
Power Member
Posts: 14741
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Internal associations: individual icons and predefined selection types

Post 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
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Re: Internal associations: individual icons and predefined selection types

Post by *MVV »

I would expect merging these parameters of internal associations too, that would be quite useful sometimes.
Post Reply