Page 1 of 1

Increase internal associations count

Posted: 2018-01-31, 05:17 UTC
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.

Posted: 2018-01-31, 06:52 UTC
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.

Ini file 64k limit per file or per section?

Posted: 2018-01-31, 08:21 UTC
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:






 

Posted: 2018-01-31, 09:09 UTC
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/...

Posted: 2018-01-31, 09:53 UTC
by MVV
I'm using F4Menu for tools, it allows to associate different extensions with every editor and display associated editors on F4...

Posted: 2018-01-31, 14:16 UTC
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

Posted: 2018-01-31, 15:39 UTC
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...

Posted: 2018-02-02, 08:22 UTC
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

Posted: 2018-02-02, 09:08 UTC
by MVV
Merging would work better: separate association with icon and separete with context menu items for multiple extensions...

Posted: 2018-02-02, 10:39 UTC
by Lefteous
2MVV
Hm could you explain that in more detail please.

Posted: 2018-02-02, 15:00 UTC
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.

Posted: 2018-02-03, 00:06 UTC
by Lefteous
2MVV
Yes I know this suggestion but it doesn't seem to be difficult to implement while my above suggestion seems doable.