Redirect error

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Samuel
Power Member
Power Member
Posts: 1930
Joined: 2003-08-29, 15:44 UTC
Location: Germany, Brandenburg an der Havel
Contact:

Redirect error

Post by *Samuel »

If I add a "RedirectSection=0" to this two sections: "[FileSystemPlugins]" and "[PackerPlugins]" then the entry RedirectSection shows up in TC.

- Both entrys result in a new plugin "RedirectSection" in the according plugin page.
- Adding it to FileSystemPlugins even shows a new entry "RedirectSection" in Networkhood (what is the main reason for starting this thread.)

BTW: Redirecting is great. I now have a wincmd_history.ini.

PS: I know I could remove the entrys for this sections because the default action for the sections is not to export them.
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

Confirmed!

BTW There is nothing wrong when INI file is specified.
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

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

Post by *ghisler(Author) »

This is a known limitation which is present in many ini sections, when TC has to enumerate the contents of the entire section. It happens only with RedirectSection=0 because that points to the same ini where RedirectSection=0 is present. Unfortunately it's too much work to fix that problem, there are too many possible locations.
Author of Total Commander
https://www.ghisler.com
User avatar
Samuel
Power Member
Power Member
Posts: 1930
Joined: 2003-08-29, 15:44 UTC
Location: Germany, Brandenburg an der Havel
Contact:

Post by *Samuel »

So I removed the "RedirectSection=0" entry and everything is ok. I just thought it would be easy to fix. Could be moved to behavior what will not be changed.
User avatar
Boofo
Power Member
Power Member
Posts: 1431
Joined: 2003-02-11, 00:29 UTC
Location: Des Moines, IA (USA)
Contact:

Post by *Boofo »

2Samuel,

I'm wondering why you would need RedirectSection=0 if you are not redirecting that section. Kind of redundant, isn't it?
chmod a+x /bin/laden -- Allows anyone the permission to execute /bin/laden

How do I un-overwrite all my data?

User of Total Commander
#60471 Single user license
User avatar
Samuel
Power Member
Power Member
Posts: 1930
Joined: 2003-08-29, 15:44 UTC
Location: Germany, Brandenburg an der Havel
Contact:

Post by *Samuel »

The help says if I use "AlternateUserIni=C:\Programme\totalcmd\wincmd_history.ini" then some sections are redirected to that file and some are not.
But if I add "RedirectSection=0" to a section it is not redirected there.
So I just appended this entry to every section I wanted to use in my normal "wincmd.ini".

BTW: Thanks a lot for this feature, Christian. Now I can pretty easy remove my history by just deleting "wincmd_history.ini".
User avatar
Boofo
Power Member
Power Member
Posts: 1431
Joined: 2003-02-11, 00:29 UTC
Location: Des Moines, IA (USA)
Contact:

Post by *Boofo »

I just use:

RedirectSection=%COMMANDER_INI%\..\wincmd_History.ini

in each section I want redirected to the new file. I have one for History, Plugins and User. Doing it in each section allows me to have as many redirects as I want exactly where I want them. This is how pertermad's example taught me to do it and it works great!
chmod a+x /bin/laden -- Allows anyone the permission to execute /bin/laden

How do I un-overwrite all my data?

User of Total Commander
#60471 Single user license
User avatar
Samuel
Power Member
Power Member
Posts: 1930
Joined: 2003-08-29, 15:44 UTC
Location: Germany, Brandenburg an der Havel
Contact:

Post by *Samuel »

I knew that possibility, but its enough for me to have one additional ini.
Post Reply