[req] desktop dir variable in tabdir in wincmd.ini

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
versalzen
Power Member
Power Member
Posts: 670
Joined: 2003-09-16, 11:52 UTC
Location: kölle, linksrheinisch.

[req] desktop dir variable in tabdir in wincmd.ini

Post by *versalzen »

hi,
i'm asking myself, if it is simple to implement and would be considered as useful from you all.

i use tc on a portable harddrive on several computers.

i often use save tabs on both sides to file (and resp. load tabs...).

i save the files "always" to the desktop or to the C:\temp dir.

therefore, i have stored TabDir=%TEMP% or TabDir=%$DESKTOP% in wincmd.ini
which opens the correct dir for saving.
if tc has saved the tab-file, it changes the TabDir= from i.e. TabDir=%TEMP% to TabDir=D:\temp or TabDir=%$DESKTOP% to TabDir=c:\dokumente und einstellungen\usernameXYZ\desktop (or some other username)
which is a little bit anoying for me, because if i use tc on another computer, the path saved in TabDir= now doesnt point to the "correct" dir anymore.

so i have to correct the path by hand, which is not much stress, but can be a hassle and a waste of time anyway. tc then stores the new path again, which will not the "correct" path on the next computer on the next save. and so on.

now, my which/idea is this:

a)
if tc recognize, if the path it will save, is a path which is stored in a variable used by tc itself, it will replace the path automaticly with the corresponding variable,

or

b)
the user can "fixate" his place to save anyhow.


example to a)
if tc recognizes that the saved path is C:\temp, which is (assumed by me) the same as %TEMP%, then it uses %TEMP% to store the path in TabDir=.

if tc recognizes that the saved path is C:\dokumente und einstellungen\foousername\desktop, which is the same as $%desktop%, then it uses $%desktop% to store the path in TabDir=.
and so on :-)

must be not so hard to implement, i think.
what do you think?

cheers
Was nützt der Löffel für die Weisheit, wenn man zu weit vom Suppentopf entfernt sitzt?

Mario
User avatar
ND
Member
Member
Posts: 150
Joined: 2006-04-10, 16:24 UTC
Location: Sibiu, RO

Post by *ND »

versalzen wrote:b)
the user can "fixate" his place to save anyhow.
use RedirectSection to a separate file, and make the separate file read-only:

Code: Select all

//wincmd.ini, writable
[Configuration]
...
RedirectSection=separate.ini
...

//separate.ini, read-only
TabDir=%TEMP%
aNDreas Bolotă
The truth always carries the ambiguity of the words used to express it. (Frank Herbert, God Emperor of Dune)
User avatar
versalzen
Power Member
Power Member
Posts: 670
Joined: 2003-09-16, 11:52 UTC
Location: kölle, linksrheinisch.

Post by *versalzen »

ND wrote:
versalzen wrote:b)
the user can "fixate" his place to save anyhow.
use RedirectSection to a separate file, and make the separate file read-only:

Code: Select all

//wincmd.ini, writable
[Configuration]
...
RedirectSection=separate.ini
...

//separate.ini, read-only
TabDir=%TEMP%
thanks for the fast idea, but this will "lock" all the settings which are stored in [Configuration], not only TabDir=
so it won't help, but will produce more problems. =)
Was nützt der Löffel für die Weisheit, wenn man zu weit vom Suppentopf entfernt sitzt?

Mario
User avatar
ND
Member
Member
Posts: 150
Joined: 2006-04-10, 16:24 UTC
Location: Sibiu, RO

Post by *ND »

versalzen wrote:thanks for the fast idea, but this will "lock" all the settings which are stored in [Configuration], not only TabDir=
so it won't help, but will produce more problems. =)
I had thought that what's before RedirectSection would not be locked, but I just made some tests and you're right: the entire section becomes read-only.
aNDreas Bolotă
The truth always carries the ambiguity of the words used to express it. (Frank Herbert, God Emperor of Dune)
User avatar
versalzen
Power Member
Power Member
Posts: 670
Joined: 2003-09-16, 11:52 UTC
Location: kölle, linksrheinisch.

Post by *versalzen »

ND wrote:
versalzen wrote:thanks for the fast idea, but this will "lock" all the settings which are stored in [Configuration], not only TabDir= so it won't help, but will produce more problems. =)
I had thought that what's before RedirectSection would not be locked, but I just made some tests and you're right: the entire section becomes read-only.
i will support the request for locking specific settings, if anyone has the currage to request it :-> not me. :)

maybe some other an idea?
Was nützt der Löffel für die Weisheit, wenn man zu weit vom Suppentopf entfernt sitzt?

Mario
Post Reply