Page 1 of 1

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

Posted: 2024-03-26, 11:02 UTC
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?

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

Posted: 2024-03-26, 11:48 UTC
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.

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

Posted: 2024-03-26, 13:43 UTC
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
:?:

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

Posted: 2024-03-26, 16:22 UTC
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

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

Posted: 2024-06-28, 13:12 UTC
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.



 

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

Posted: 2024-06-28, 14:11 UTC
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.

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

Posted: 2024-06-30, 16:31 UTC
by ghisler(Author)
This is unfortunately not feasible, sorry. Just restart TC with e.g.
cm_exit 1

cm_RereadTC

Posted: 2025-01-11, 13:33 UTC
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.

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

Posted: 2025-01-11, 14:12 UTC
by white

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


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

Posted: 2025-01-11, 14:40 UTC
by Fla$her