Here you can propose new features, make suggestions etc.
Moderators: white , Hacker , petermad , Stefan2
Stiltzkin
Member
Posts: 182 Joined: 2004-09-10, 17:15 UTC
Post
by *Stiltzkin » 2019-11-14, 01:43 UTC
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
MVV
Power Member
Posts: 8702 Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation
Post
by *MVV » 2019-11-14, 07:55 UTC
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
Posts: 182 Joined: 2004-09-10, 17:15 UTC
Post
by *Stiltzkin » 2019-11-14, 12:20 UTC
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.
petermad
Power Member
Posts: 14741 Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:
Post
by *petermad » 2019-11-15, 02:30 UTC
2
Stiltzkin
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
Stiltzkin
Member
Posts: 182 Joined: 2004-09-10, 17:15 UTC
Post
by *Stiltzkin » 2019-11-15, 21:18 UTC
i tried. then the icon is displayed correctly but the association isn't working anymore. the default windows association is used.
petermad
Power Member
Posts: 14741 Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:
Post
by *petermad » 2019-11-16, 12:33 UTC
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
Stiltzkin
Member
Posts: 182 Joined: 2004-09-10, 17:15 UTC
Post
by *Stiltzkin » 2019-11-16, 16:16 UTC
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.
petermad
Power Member
Posts: 14741 Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:
Post
by *petermad » 2019-11-17, 01:06 UTC
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
MVV
Power Member
Posts: 8702 Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation
Post
by *MVV » 2019-11-18, 06:09 UTC
I would expect merging these parameters of internal associations too, that would be quite useful sometimes.