INI section redirection with resolution-specific settings

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

User avatar
wanderer
Power Member
Power Member
Posts: 1578
Joined: 2003-03-28, 14:35 UTC
Location: Sol

INI section redirection with resolution-specific settings

Post by *wanderer »

Is there a way to instruct TC to redirect into another INI file, all newly added sections that contain resolution-specific settings (so, their header is not known in advance)?
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3
x64: Clients/Servers from Win7 to Win11 and Win2K12Srv to Win2K22Srv, mainly Win10 though.
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3300
Joined: 2003-05-06, 11:46 UTC

Re: INI section redirection with resolution-specific settings

Post by *Sir_SiLvA »

Not currently afaik, but I support your suggestion +1 :D
Hoecker sie sind raus!
User avatar
wanderer
Power Member
Power Member
Posts: 1578
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Re: INI section redirection with resolution-specific settings

Post by *wanderer »

Sir_SiLvA wrote: 2023-06-16, 10:23 UTCNot currently afaik
If this is true, can a Mod pls move this post to Suggestions?
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3
x64: Clients/Servers from Win7 to Win11 and Win2K12Srv to Win2K22Srv, mainly Win10 though.
JOUBE
Power Member
Power Member
Posts: 1484
Joined: 2004-07-08, 08:58 UTC

Re: INI section redirection with resolution-specific settings

Post by *JOUBE »

wanderer wrote: 2023-06-16, 09:59 UTC Is there a way to instruct TC to redirect into another INI file, all newly added sections that contain resolution-specific settings (so, their header is not known in advance)?
Aha, an avid user of virtual machines ;-)
The suggestion is not uninteresting. It could definitely relieve the main ini.
+1

Joube
User avatar
funkymonk
Senior Member
Senior Member
Posts: 416
Joined: 2013-12-04, 09:56 UTC

Re: INI section redirection with resolution-specific settings

Post by *funkymonk »

support++
User avatar
wanderer
Power Member
Power Member
Posts: 1578
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Re: INI section redirection with resolution-specific settings

Post by *wanderer »

JOUBE wrote: 2023-06-20, 13:01 UTCAha, an avid user of virtual machines ;-)
:) :) :) Indeed, that's where the whole thing started from...
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3
x64: Clients/Servers from Win7 to Win11 and Win2K12Srv to Win2K22Srv, mainly Win10 though.
massor
Junior Member
Junior Member
Posts: 24
Joined: 2022-05-01, 18:30 UTC

Re: INI section redirection with resolution-specific settings

Post by *massor »

Redirected or not, I especially want resolution-specific settings for Lister, so...
Support ++
JOUBE
Power Member
Power Member
Posts: 1484
Joined: 2004-07-08, 08:58 UTC

Re: INI section redirection with resolution-specific settings

Post by *JOUBE »

wanderer wrote: 2023-06-20, 16:14 UTC
JOUBE wrote: 2023-06-20, 13:01 UTCAha, an avid user of virtual machines ;-)
:) :) :) Indeed, that's where the whole thing started from...
Do you have tried (within wincmd.ini: Section [Configuration]) in your VMs?

Code: Select all

ResolutionSpecific=0
with the Section

Code: Select all

[AllResolutions]
Joube
User avatar
wanderer
Power Member
Power Member
Posts: 1578
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Re: INI section redirection with resolution-specific settings

Post by *wanderer »

JOUBE wrote: 2023-06-21, 01:47 UTCDo you have tried (within wincmd.ini: Section [Configuration]) in your VMs?

Code: Select all

ResolutionSpecific=0
with the Section

Code: Select all

[AllResolutions]
Hmmm... Nope. i've missed that. Thanks, i'll give it a try and see how it goes.
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3
x64: Clients/Servers from Win7 to Win11 and Win2K12Srv to Win2K22Srv, mainly Win10 though.
JOUBE
Power Member
Power Member
Posts: 1484
Joined: 2004-07-08, 08:58 UTC

Re: INI section redirection with resolution-specific settings

Post by *JOUBE »

wanderer wrote: 2023-06-21, 07:54 UTC ...i'll give it a try and see how it goes.
If possible, please report your experiences here. This is useful for others who are looking for this question (especially in combination with VMs) in the forum. Thanks

Joube
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48118
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: INI section redirection with resolution-specific settings

Post by *ghisler(Author) »

Have a look at the help, section 4b, click on "wincmd.ini":
1. Global option in section [Configuration]:
AlternateUserIni=<somename.ini>
If present in section [Configuration], it will redirect storing of all user-changeable sections to an alternate ini file (in this example, somename.ini), except for the following sections: [Configuration], [Layout], [Packer], [Confirmation], [Extensions], [Associations], [Shortcuts], [ShortcutsWin], [PackerPlugins], [FileSystemPlugins], [ListerPlugins], [ContentPlugins].
This means that all these new resolutuion-specific sections would be redirected to the specified ini file.
To prevent other sections from being sent there, add the line
RedirectSection=0
to each section you don't want to redirect. This isn't needed for the sections listed above.
Author of Total Commander
https://www.ghisler.com
User avatar
wanderer
Power Member
Power Member
Posts: 1578
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Re: INI section redirection with resolution-specific settings

Post by *wanderer »

ghisler(Author) wrote: 2023-06-21, 08:31 UTCHave a look at the help, section 4b, click on "wincmd.ini"
I'll check it, thanks.
ghisler(Author) wrote: 2023-06-21, 08:31 UTCit will redirect storing of all user-changeable sections
Interesting. I'm guessing the "user-changeable sections" are fixed and hard-coded in TC, right? If this mechanism already exists, it might be more interesting to extend it so that the user can massively define which sections he wishes to redirect to which INI.

For instance:

Code: Select all

AlternateUserIni1=<somename1.ini>|[Configuration], [Layout], [Packer]
AlternateUserIni2=<somename2.ini>|[Extensions], [Associations], [Shortcuts]
or perhaps

Code: Select all

AlternateUserIni1=<somename1.ini>
AlternateUserIni1Sections=[Configuration], [Layout], [Packer]
AlternateUserIni2=<somename1.ini>
AlternateUserIni2Sections=[Extensions], [Associations], [Shortcuts]
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3
x64: Clients/Servers from Win7 to Win11 and Win2K12Srv to Win2K22Srv, mainly Win10 though.
User avatar
petermad
Power Member
Power Member
Posts: 14826
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: INI section redirection with resolution-specific settings

Post by *petermad »

2wanderer
it might be more interesting to extend it so that the user can massively define which sections he wishes to redirect to which INI.
For this you have the parameter RedirectSection
Help wrote:RedirectSection= Redirect a single section to other ini file. Description here.
I for exampel use:
Spoiler

Code: Select all

[PackerPlugins]
RedirectSection=wincmd_plugins.ini

[PackerPlugins64]
RedirectSection=wincmd_plugins.ini

[FileSystemPlugins]
RedirectSection=wincmd_plugins.ini

[FileSystemPlugins64]
RedirectSection=wincmd_plugins.ini

[ListerPlugins]
RedirectSection=wincmd_plugins.ini

[ListerPlugins64]
RedirectSection=wincmd_plugins.ini

[ContentPlugins]
RedirectSection=wincmd_plugins.ini

[ContentPlugins64]
RedirectSection=wincmd_plugins.ini

[ReplaceIniLocation]
RedirectSection=wincmd_plugins.ini

[DisabledPlugins]
RedirectSection=wincmd_plugins.ini

[rename]
RedirectSection=wincmd_history.ini

[SyncOptions]
RedirectSection=wincmd_history.ini

[Selection]
RedirectSection=wincmd_history.ini

[SearchName]
RedirectSection=wincmd_history.ini

[SearchIn]
RedirectSection=wincmd_history.ini

[SearchText]
RedirectSection=wincmd_history.ini

[RenameTemplates]
RedirectSection=wincmd_history.ini

[RenameSearchFind]
RedirectSection=wincmd_history.ini

[RenameSearchReplace]
RedirectSection=wincmd_history.ini

[left]
RedirectSection=wincmd_history.ini

[right]
RedirectSection=wincmd_history.ini

[lefttabs]
RedirectSection=wincmd_history.ini

[righttabs]
RedirectSection=wincmd_history.ini

[Command line history]
RedirectSection=wincmd_history.ini

[RightHistory]
RedirectSection=wincmd_history.ini

[LeftHistory]
RedirectSection=wincmd_history.ini

[MkDirHistory]
RedirectSection=wincmd_history.ini

[NewFileHistory]
RedirectSection=wincmd_history.ini

[TargetList]
RedirectSection=wincmd_history.ini

[PluginDuplicates]
RedirectSection=wincmd_history.ini

[DirSelection]
RedirectSection=wincmd_history.ini

[activetabs]
RedirectSection=wincmd_history.ini

[LastTracks]
RedirectSection=wincmd_history.ini

[ButtonbarCache]
RedirectSection=wincmd_history.ini

[user]
RedirectSection=wincmd_user.ini

[DirMenu]
RedirectSection=wincmd_user.ini

[AllResolutions]
RedirectSection=wincmd_user.ini

[640x480 (8x16)]
RedirectSection=wincmd_user.ini

[800x600 (8x16)]
RedirectSection=wincmd_user.ini

[1024x768 (8x16)]
RedirectSection=wincmd_user.ini

[1152x864 (8x16)]
RedirectSection=wincmd_user.ini

[1280x960 (8x16)]
RedirectSection=wincmd_user.ini

[1280x1024 (8x16)]
RedirectSection=wincmd_user.ini

[1400x1050 (8x16)]
RedirectSection=wincmd_user.ini

[1920x1080 (8x16)]
RedirectSection=wincmd_user.ini
without using the AlternateUserIni parameter
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.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
wanderer
Power Member
Power Member
Posts: 1578
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Re: INI section redirection with resolution-specific settings

Post by *wanderer »

petermad wrote: 2023-06-21, 15:00 UTCFor this you have the parameter RedirectSection
Hey petermad. I know, i just proposed a different approach, one in which you have the INI file definition once and then the sections that are redirected. This seems more tidy, now that i think of it though, it seems to have a small chance of being implemented, considering the huge todo list Christian must have in his hands...
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3
x64: Clients/Servers from Win7 to Win11 and Win2K12Srv to Win2K22Srv, mainly Win10 though.
User avatar
petermad
Power Member
Power Member
Posts: 14826
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: INI section redirection with resolution-specific settings

Post by *petermad »

2wanderer
i just proposed a different approach,
Not a bad idea - it would make the administration of the redirections easier.
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.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply