Increase internal associations count

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

Increase internal associations count

Post by *Stiltzkin »

It seems to be capped at 250.

Can't add more (no visible error, just a sound) using the gui, and manually increasing the number to 251 in the config doesn't seem to work either.

Also it would be nice to just change the icon for a certain file extension.

For example image formats (jpg, gif, png):

I'd like them to open with the same tool (irfan view)

So i would make one internal association for:
*.jpg; *.png; *.gif
..and associate them accordingly.

But i still would like to have a different icon for each of them.

The way it is now i have to make one entry for every extension. But let's say i want to add another program or change the default. Now i have to change them all individually again.
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Maybe your INI is too big now? There is a 64K limit for INI files in Windows... Perhaps you could redirect your associations section to a separate file.
User avatar
Stefan2
Power Member
Power Member
Posts: 4132
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Ini file 64k limit per file or per section?

Post by *Stefan2 »

Isn't that is a 64K limit per section 'only'.
History.txt wrote:23.04.06 Added: The Ctrl+D menu now supports up to 998 items (if the limit of 64k per ini file section isn't reached before)
64k is huge (for TC settings), my whole ini is 25k only.

But then I have a few re directions too:
[left]
RedirectSection=WIN_Tmp.INI
[right]
RedirectSection=WIN_Tmp.INI
:wink:






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

Post by *Stiltzkin »

i'm using redirect too:

Code: Select all

wincmd.ini
[Configuration]
UseIniInProgramDir=7
RedirectSection=%COMMANDER_PATH%\profile\wincmd_config.ini
[Associations]
RedirectSection=%COMMANDER_PATH%\profile\wincmd_associations.ini
wincmd_associations.ini is 56,5KB (951 lines)
from Filter1 to Filter249.

Filter34=*.avi for example has 9 other entries for various tools like vlc/mpc/mediainfo/...
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

I'm using F4Menu for tools, it allows to associate different extensions with every editor and display associated editors on F4...
Stiltzkin
Member
Member
Posts: 182
Joined: 2004-09-10, 17:15 UTC

Post by *Stiltzkin »

2MVV
i used to do this too - in 2008 :D

i even made a post back then asking for internal associations as a feature:

http://www.ghisler.ch/board/viewtopic.php?p=146549
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Unfortunately TC internal association system doesn't allow merging context menus from different items for same extension, so separate items with tools can't be used for same extensions, there were such suggestions but...
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

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

Post by *MVV »

Merging would work better: separate association with icon and separete with context menu items for multiple extensions...
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2MVV
Hm could you explain that in more detail please.
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

It is a real problem when you want to have some common settings for a group of extensions but also for some different setting for each of them, e.g. same context menu entries but different icons. Icon-only association could be relatively compact. But currently you can't apply multiple IA sections for one file, you have to repeat contents of large IA section for every matched file type.

Merging or intersection of filters was mentioned many times (e.g. 1, 2, 3) and it could help in such cases: one association only defines context menu entries for all extensions, but it is not used exclusively, it is merged with another one that defines an icon for some extension.
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2MVV
Yes I know this suggestion but it doesn't seem to be difficult to implement while my above suggestion seems doable.
Post Reply