Please help me with tabs

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Steve Adams
Junior Member
Junior Member
Posts: 22
Joined: 2004-08-07, 22:55 UTC
Location: Florida USA

Please help me with tabs

Post by *Steve Adams »

Hello Everybody,

I would like tabs to be created in a pane for everytime I
chane dirs in that pane.

When I start TC, a tab is already there in the pane for that dir.
Yet when I change dirs, there remains only 1 tab (but now for the
current dir).

Is there a setting to make a new tab for every dir change?

i.e. if I change dirs 5 times in same pane (to 5 diff dirs) I would
like to have 5 different tabs.
Thanks,

Steve (TC 6.5)
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

Totalcmd help: 4.b. Wincmd.ini wrote:LockedTabChange=1 What to do when changing dir on locked tab:
0: always create a new tab
1: re-use tab with same dir
2: re-use first unlocked tab
3: re-use last unlocked tab

TabEnterDirChange=1 What should happen when users presses ENTER on a dir on a locked tab?
0: nothing
1: open new tab
2: ask user
right click on the tab and activate 'lock this tab'. In the Wincmd.ini you could configure, wihat should happen if you change the dir.


hope that helps

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
StickyNomad
Power Member
Power Member
Posts: 1933
Joined: 2004-01-10, 00:15 UTC
Location: Germany

Post by *StickyNomad »

...or you can press CTRL+ENTER when the cursor is over the dir you want to open, and then this dir is opened in a new tab and the tab will be activated.

may this could be a workaround for you.

Greets
StickyNomad
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

...or you can press CTRL+ENTER when the cursor is over the dir you want to open [...]
That would be Ctrl-Up.

HTH
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
Steve Adams
Junior Member
Junior Member
Posts: 22
Joined: 2004-08-07, 22:55 UTC
Location: Florida USA

Post by *Steve Adams »

Thanks, Everybody.

Locking the tabs gives me the behavior that I want, but I wish I did not have to lock each of them manually each time.
Thanks,

Steve (TC 6.5)
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

Steve Adams wrote:Thanks, Everybody.

Locking the tabs gives me the behavior that I want, but I wish I did not have to lock each of them manually each time.
After you've locked all Tabs you want you have to 'Configure-> Save settings' while in the 'Configuration -> Options -> Operatin: Save on exit - Directories ' is disabled.

Then each time you open TC the saved 'locked Tabs' will appear.

Or you could (by rightclick on the Tabs) 'save Tabs to file' and make one or more Button(s) with comand appendtabs tabfile.tab to append your saved Tabs or opentabs tabfile.tab to replace all tabs with the saved one. (See Totalcmd Help 3.m. Folder Tabs)

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
Steve Adams
Junior Member
Junior Member
Posts: 22
Joined: 2004-08-07, 22:55 UTC
Location: Florida USA

Post by *Steve Adams »

Yes, I can see that would be a valuable tool
for a static list of dirs; but I want a dynamic
one: different for each session.

I'm too greedy, I know. I still love TC.
Thanks,

Steve (TC 6.5)
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

Steve Adams wrote:but I want a dynamic
one: different for each session.
How do you think should TC decide wich dir to lock, if they are always different?
If you have say: 20 different dirs to lock you could create an own buttonbar for them and open each with opentabs tabfile.tab.
Isn't that enough?

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
Steve Adams
Junior Member
Junior Member
Posts: 22
Joined: 2004-08-07, 22:55 UTC
Location: Florida USA

Post by *Steve Adams »

The only reason I say "locked" is that is the only
way I know of to keep them from changing at each
dir change.
If I have directories that I normally use, I just
make a button for them.

I thought it would be neat to have dir tabs, instead
of using the dir history to find the dir I was at 3 dirs ago.
Thanks,

Steve (TC 6.5)
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

Steve Adams wrote:The only reason I say "locked" is that is the only
way I know of to keep them from changing at each
dir change.
Sorry, I think I do not get the idea.

I guess: You want to move through the directorys and at a certain point you want that the following changes are not affect the current Tab but open a new one?

Then you should use [ctrl] + [up] to change the dir as Hacker said. It opens the Dir under the cursor in a new Tab. If you use [shift]+[ctrl] + [up] this Tab opens in the other pane.

If not, please try to clarify your wish. :?

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
Steve Adams
Junior Member
Junior Member
Posts: 22
Joined: 2004-08-07, 22:55 UTC
Location: Florida USA

Post by *Steve Adams »

Well, I thought it would be nice for a new tab to be created everytime I change dirs in a pane; tabs that stay there
thru the whole TC session. (doing the same thing as
the dir history drop-down list).

When I use tabs now (unless I lock them), changing
dirs in the pane overwrites my previous tab to a new
dir, and I want to keep the old tabs of visited dirs until the
end of the session. Exactly the same as dir history drop-down list, only it's always visible.
Thanks,

Steve (TC 6.5)
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

I think it is a very special wish.

This way I would have at least 30 or 40 Tabs in each pane, till I end the TC session.

When Tabs were introduced the behavior of locked Tabs was: everytime you change a dir in the locked Tab it was created a new one - regardless you had already opened one Tab with this dir.
There were many complaints about it so you could now configure the behavior (a bit).

But maybe the [Ctrl]+[up] is a workaroud for you?


sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

maybe the [Ctrl]+[up] is a workaroud for you?
... together with Configuration - Options - Folder Tabs - Ctrl+Up opens new tab in foreground.
And you might also want to remap something like Ctrl-Alt-Enter to cm_OpenDirInNewTab in Configuration - Options - Misc.

HTH
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Mbwana
Junior Member
Junior Member
Posts: 5
Joined: 2004-09-02, 14:10 UTC

Post by *Mbwana »

Sheepdog wrote:
Totalcmd help: 4.b. Wincmd.ini wrote:LockedTabChange=1 What to do when changing dir on locked tab:
0: always create a new tab
1: re-use tab with same dir
2: re-use first unlocked tab
3: re-use last unlocked tab

TabEnterDirChange=1 What should happen when users presses ENTER on a dir on a locked tab?
0: nothing
1: open new tab
2: ask user
right click on the tab and activate 'lock this tab'. In the Wincmd.ini you could configure, wihat should happen if you change the dir.


hope that helps

sheepdog
hmmm... I tried those settings but it did not change current (always open directories in new tabs creating this high tab number chaos) tab behavior. I tried all different setting (1-3) btw.
what am I doing wrong?

rob

rob
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

Mbwana wrote:hmmm... I tried those settings but it did not change current (always open directories in new tabs creating this high tab number chaos) tab behavior. I tried all different setting (1-3) btw.
what am I doing wrong?
Look at Help->about Total Commander where it searches the ini file. Maybe you made the changes in the wrong place?

Or are you useing an old version? Latest version is 6.03.

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
Post Reply