Add a cm_command to re-read the wincmd.ini w/o the need to restart TC

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Stefan2
Power Member
Power Member
Posts: 4281
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Add a cm_command to re-read the wincmd.ini w/o the need to restart TC

Post by *Stefan2 »

Would this makes sense?
Would this be possible?


Add a cm_command to re-read the currently-used-wincmd.ini whitout the need to restart TC


F.ex. I want to modify the ini to adjust a line like this:

Filter1=*.txt *.log *.ini *.cfg *.htm
to
Filter1=*.txt *.log *.ini *.cfg *.htm *.xml

and just let TC reread the ini w/o restarting TC.



Or should we use cm_Exit for that?
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6968
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Add a cm_command to re-read the wincmd.ini w/o the need to restart TC

Post by *Horst.Epp »

Stefan2 wrote: 2024-03-26, 11:02 UTC Or should we use cm_Exit for that?
For me that is enough as such Ini modifications are not happens often.
Windows 11 Home, Version 24H2 (OS Build 26100.3915)
TC 11.55 RC1 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
User avatar
tuska
Power Member
Power Member
Posts: 4049
Joined: 2007-05-21, 12:17 UTC

Re: Add a cm_command to re-read the wincmd.ini w/o the need to restart TC

Post by *tuska »

Stefan2 wrote: 2024-03-26, 11:02 UTC Or should we use cm_Exit for that?
Or maybe
cm_exit 9

Code: Select all

TOTALCMD#BAR#DATA
cm_exit 9

TOTALCMD.EXE,25
cm_exit 9|1: Exit and restart Total Commander|8: Pass current left and right directory and file under cursor to new instance|https://www.ghisler.ch/board/viewtopic.php?p=446794#p446794


-1
:?:
Fla$her
Power Member
Power Member
Posts: 2996
Joined: 2020-01-18, 04:03 UTC

Re: Add a cm_command to re-read the wincmd.ini w/o the need to restart TC

Post by *Fla$her »

Stefan2 wrote: 2024-03-26, 11:02 UTC F.ex. I want to modify the ini to adjust a line like this:
cm_ChangeKeyMainIni with apply
Overquoting is evil! 👎
User avatar
Stefan2
Power Member
Power Member
Posts: 4281
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Add a cm_command to re-read the wincmd.ini w/o the need to restart TC

Post by *Stefan2 »

User wish:
Stefan2 wrote: 2024-03-26, 11:02 UTC Would this be possible?

Add a cm_command to re-read the currently-used-wincmd.ini whitout the need to restart TC



I just found out that that command is already available internal and it should be easy to make a own command from it:
ghisler(Author) wrote: 2014-03-13, 15:00 UTC Command to load .lng files

The function isn't currently checking the presence of the files.

It just sets the name in the ini, and tells TC to re-load the language and menu.

. . .


2ghisler(Author)

So can we please get a new command like
cm_ReloadINI

or even
cm_ReloadINI <path\example.ini>
cm_ReloadINI "%temp%\clean.ini"


So we do not have to restart TC, and do not loose filtering and selections and keep all current open folder.


Thanks for considering it and also for a feedback.



 
User avatar
white
Power Member
Power Member
Posts: 5783
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Add a cm_command to re-read the wincmd.ini w/o the need to restart TC

Post by *white »

Stefan2 wrote: 2024-06-28, 13:12 UTC
Stefan2 wrote: 2024-03-26, 11:02 UTC Add a cm_command to re-read the currently-used-wincmd.ini whitout the need to restart TC
I just found out that that command is already available internal and it should be easy to make a own command from it:
ghisler(Author) wrote: 2014-03-13, 15:00 UTC . . .

It just sets the name in the ini, and tells TC to re-load the language and menu.

. . .
Reloading the language and menu is not the same as reloading wincmd.ini.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50471
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Add a cm_command to re-read the wincmd.ini w/o the need to restart TC

Post by *ghisler(Author) »

This is unfortunately not feasible, sorry. Just restart TC with e.g.
cm_exit 1
Author of Total Commander
https://www.ghisler.com
AkulaBig
Power Member
Power Member
Posts: 530
Joined: 2021-09-09, 17:28 UTC

cm_RereadTC

Post by *AkulaBig »

I propose to add the cm_RereadTC command, which will allow you to reread the wincmd.ini file without rebooting the TC. Now for this purpose you have to use the Autorun plugin to create an endless loop and set a time delay.
User avatar
white
Power Member
Power Member
Posts: 5783
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Add a cm_command to re-read the wincmd.ini w/o the need to restart TC

Post by *white »

Moderator message from: white » 2025-01-11, 14:09 UTC

Post Reply