Moving (not Copy) a tab to other panel by drag&drop

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Reza
Junior Member
Junior Member
Posts: 8
Joined: 2009-07-19, 14:57 UTC

Moving (not Copy) a tab to other panel by drag&drop

Post by *Reza »

Hi
It may be a good thing if I can
Move a tab from a panel to other panel by drag&drop.
Currently by drag&drop the tab copied to other Panel and I had to close the tab on source panel after copy.
I think it can be move if user pressed Ctrl (or Shift) on drop (or vice versa: copy by Ctrl and Move by default)

thanks a lot
User avatar
Vochomurka
Power Member
Power Member
Posts: 814
Joined: 2005-09-14, 22:19 UTC
Location: Russia
Contact:

Post by *Vochomurka »

I agree.
I've written this script exactly by the same reason. Except that the script supports hot keys and button rather than drag-n-drop :(
Single user license #329241
PowerPro scripts for Total Commander
User avatar
Hacker
Moderator
Moderator
Posts: 13052
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Could we not use the same hold left - hold right - release left logic for tab moving?

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
Vochomurka
Power Member
Power Member
Posts: 814
Joined: 2005-09-14, 22:19 UTC
Location: Russia
Contact:

Post by *Vochomurka »

Of course we could, but we can't yet. Another
MoveTab script comment wrote:good idea to assign the Alt+F6 hotkey to
this command.
Single user license #329241
PowerPro scripts for Total Commander
User avatar
Reza
Junior Member
Junior Member
Posts: 8
Joined: 2009-07-19, 14:57 UTC

I'm using TC 7.55a

Post by *Reza »

Vochomurka wrote: Except that the script supports hot keys and button rather than drag-n-drop :(
It is better than i looking for :)
u said "This script for Total Commander 7.0 and older." but I'm using TC 7.55a :cry:

Is there a new version that works on TC7.55a?
User avatar
Vochomurka
Power Member
Power Member
Posts: 814
Joined: 2005-09-14, 22:19 UTC
Location: Russia
Contact:

Post by *Vochomurka »

Is there a new version that works on TC7.55a?
It is the script you are looking at when you open this page :)
If you have version 6.53 that is obviously older than 7.0 you should use this version. Your version 7.55 is for sure NEWER than 7.0, then you should use the main version.
Good luck.
Single user license #329241
PowerPro scripts for Total Commander
User avatar
Reza
Junior Member
Junior Member
Posts: 8
Joined: 2009-07-19, 14:57 UTC

Post by *Reza »

It is the script you are looking at when you open this page
2Vochomurka
Yes you are right. I made a mistake :oops:

It works properly.
Thank you
User avatar
t.rauner
Junior Member
Junior Member
Posts: 13
Joined: 2012-07-01, 00:10 UTC
Location: Sulzbach-Rosenberg, Germany

New attempt with TC 9.0a

Post by *t.rauner »

-- PUSH --

Hi forum,

I have read a lot of posts here, and I have the exact same problem like descripted by the OP. I would like to have a button on the horizontal or vertical bar that moves the active tab to the other panel and activates the moved tab in the other panel, while the source tab in the source panel is being closed.

I came closer to this scenario with this weird command list:
  • * change the panel
    * open a new tab
    * change the panel back
    * match source (i. e. show current tab folder in previously opened new tab)
    * close current tab
    * change the panel again
To achieve this, I accumulated the following commands under one button (right click the button, "Command" field in "change single button" dialog):

cm_TrgActivateTab10,cm_OpenNewTab,cm_TrgActivateTab10,cm_MatchSrc,cm_CloseCurrentTab,cm_TrgActivateTab10

The careful reader will notice that I did not use something like cm_ActivateTrgTab (as there is no such command obviously), but I used cm_TrgActivateTab10 instead. This implies that my command combination will lead to unpredictive results when I open a tenth+ tab in one of the panels.

I might be satisfied if I could open the expected never to exist 99th tab, as the "up to 99 items" in command browser (cm_commandbrowser) indicates. But if I use a cm_TrgActivateTab99 command, TC just gives me a "file not found". So I think I have to stick with the 10th tab ...

Can anybody help me out with this, or even has a better solution?

Thanks in advance!
Total Commander 9.20 x64
Windows 10 Pro x64
ASUS P8H67-V
Intel Core i7-2600 CPU @ 3.40GHz
Socket 1155 LGA
16384 MBytes RAM
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

I've just came up with the following command:

Code: Select all

Command: TCFS2.exe
Parameters: %Z /ef "tcd(,`%P`,ST,1) tcm(3007)"
It opens current dir in new tab of inactive panel and closes current tab; %Z tells to TC that this button should work in archives too.
User avatar
t.rauner
Junior Member
Junior Member
Posts: 13
Joined: 2012-07-01, 00:10 UTC
Location: Sulzbach-Rosenberg, Germany

Post by *t.rauner »

MVV wrote:I've just came up with the following command:
Command: TCFS2.exe...
Hi MVV,

I just wanted to try your TCFS, but my virus scanner quarantined it, because it contains a "APC (cloud)" pattern (Avira Virus Lab).

Thank you anyway.
Total Commander 9.20 x64
Windows 10 Pro x64
ASUS P8H67-V
Intel Core i7-2600 CPU @ 3.40GHz
Socket 1155 LGA
16384 MBytes RAM
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Well, it is actually impossible to get rid of all these false detects of all these paranoid anvi-virus systems. :D

But I've just checked it on VirusTotal, looks pretty good.

You have a choice of course to believe your AV or not. :)
User avatar
petermad
Power Member
Power Member
Posts: 14741
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

How about this button:

Code: Select all

TOTALCMD#BAR#DATA
cm_GoToFirstFile,cm_OpenDirInNewTabOther,cm_CloseCurrentTab

wcmicons.dll,83
Move tab to other panel (requires at least one file in currrent dir)


-1
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
petermad
Power Member
Power Member
Posts: 14741
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

This one is better:

Code: Select all

TOTALCMD#BAR#DATA
cm_FocusTrg,cm_OpenNewTab,cm_FocusTrg,cm_MatchSrc,cm_CloseCurrentTab

wcmicons.dll,83
Move tab to other panel


-1
It doesn't require that there is a file in the source panel.
If you want focus set to the new tab, then add ",cm_FocusTrg" at the end of the command field.

Notice this solution requires TC 9.0 - since cm_FocusTrg was intruduced in this release.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
t.rauner
Junior Member
Junior Member
Posts: 13
Joined: 2012-07-01, 00:10 UTC
Location: Sulzbach-Rosenberg, Germany

problem solved at last

Post by *t.rauner »

[quote="petermad"]This one is better:

Code: Select all

TOTALCMD#BAR#DATA
cm_FocusTrg,cm_OpenNewTab,cm_FocusTrg,cm_MatchSrc,cm_CloseCurrentTab
...
Notice this solution requires TC 9.0 - since cm_FocusTrg was intruduced in this release.[/quote]
Wow, I wasn't aware of this command, while desperately trying to find it.

Your version is working like a charm, THANK YOU, petermad :!: 

I guess, until Christian introduces a native cm_MoveTabToTrg or something similar, this will be the best surrogate.

Thank you all for your support.  :D

Edit:
I made an icon for the move tab button.
[url=http://workupload.com/file/tWmH3m5]movetab.ico 13.07 KB[/url]
Total Commander 9.20 x64
Windows 10 Pro x64
ASUS P8H67-V
Intel Core i7-2600 CPU @ 3.40GHz
Socket 1155 LGA
16384 MBytes RAM
Post Reply