wincmd.ini TabDir= read-only

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
sgp
Senior Member
Senior Member
Posts: 355
Joined: 2005-01-31, 16:04 UTC

wincmd.ini TabDir= read-only

Post by *sgp »

Current state
wincmd.ini

Code: Select all

TabDir=%COMMANDER_PATH%\tabs
where this setting is intended to never change. However, there are circumstances when TC changes the setting to a fixed path, which makes the setting unportable, see http://ghisler.ch/board/viewtopic.php?t=19253&highlight=tabdir
Proposal
The goal is to make the path where tab files are saved/looked for read-only. I offer three options, from most specific to more general ways to go about adding this feature. I would be happy with the first option (A) to be implemented.
A Add new setting TabDirRO which overrides TabDir= to indicate that the setting is read-only.
B Support `|' (pipe) as the first character of a file pah setting to indicate that the setting is read-only.
C Support `=|' (equals-pipe) to indicate a read-only setting.

Clearly options B and C have far-reaching implications that are hard to predict; that's why I'm in favor of option A. I included B and C more to make A's advantage more clear when you come to think of it.

Notes
1. I'm not aware of any other wincmd.ini setting that would benefit from being specified read-only.
2. I searched TC history file for "lock" and "read-only" and didn't find a match for this concept.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

You can try to restore this setting value in INI using Autorun plugin.
Post Reply