Copy contens to the other window: "Transfer dir under cursor to OPPOSITE panel"

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Rammel
Junior Member
Junior Member
Posts: 17
Joined: 2014-03-03, 00:31 UTC

Copy contens to the other window: "Transfer dir under cursor to OPPOSITE panel"

Post by *Rammel »

Sorry for my english ;)

Do the functions

cm_TransferLeft=2024;Transfer dir under cursor to left window
cm_TransferRight=2025;Transfer dir under cursor to right window

not do exactly the same?

They both transfer "dir under cursor" to the other, the not active window,
BUT I have to use TWO Keys. One, if I want the left window (or drawer content) to
appear in the right window, and another, if I want the right window (or drawer content) to
appear in the left window.

Is there a possibility to make only ONE commando like

cm_TransferToOther=4711;Transfer dir under cursor to the other window

because then I have to use only ONE Key to transfer the active window (or drawer content)
to the other window; I don't have to consider with of the two Keys I have to use.

Thanks - Rammel
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Copy contens to the other window

Post by *petermad »

You can make it yourself.

Either use this button:

Code: Select all

TOTALCMD#BAR#DATA
%COMMANDER_EXE% /A /O
/S /R=%P%N
WCMICONS.DLL,19
Transfer dir under cursor to opposite panel


-1
To make the button:
1. Mark the text in the box here above (click SELECT ALL).
2. Copy it to the ClipBoard (press Ctrl+C).
3. Right click on TC's buttonbar and choose "Paste".


or make an em_command like this:

Code: Select all

[em_transfer_to_opposite]
cmd=%COMMANDER_EXE% /A /O
param=/S /R=%P%N
button=WCMICONS.DLL,19
menu=Transfer dir under cursor to opposite panel
in your usercmd.ini and then assign a hotkey to the command
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
Rammel
Junior Member
Junior Member
Posts: 17
Joined: 2014-03-03, 00:31 UTC

Re: Copy contens to the other window

Post by *Rammel »

I use the usercmd.ini version; it works well!

Thank you SO much!
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Copy contens to the other window: "Transfer dir under cursor to OPPOSITE panel"

Post by *petermad »

2Rammel

The solution will not work in virtual folders like \\Desktop or \\Network, but it does work in filesystem folders under \\Network and in Network shares. It does not work on FTP sites.
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
Rammel
Junior Member
Junior Member
Posts: 17
Joined: 2014-03-03, 00:31 UTC

Re: Copy contens to the other window: "Transfer dir under cursor to OPPOSITE panel"

Post by *Rammel »

Ok. Thanks again!
RickyGold
Junior Member
Junior Member
Posts: 18
Joined: 2008-09-23, 13:51 UTC

Re: Copy contens to the other window: "Transfer dir under cursor to OPPOSITE panel"

Post by *RickyGold »

Thanks to petermad, this is exactly what I needed!
(I was searching for a way to assign Ctrl-Arrow to a button, with the Left/Right "complication").

Well, in reality there is another wish.......
I mainly use this functionality when working with a feedbox: I have the results of a search in a panel, and I need the other panel to acquire the location of the file under cursor in the feedbox.
If I do this with Ctrl-LeftArrow or Ctrl-RightArrow, in the target panel the file that was under cursor in the source panel is pre-selected, while with this button no files in the target panel are selected (this helps alot when there are many similar filenames).
Is there a way to obtain the same behavior?
Thanks in advance.
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Copy contens to the other window: "Transfer dir under cursor to OPPOSITE panel"

Post by *petermad »

2RickyGold
For use in a feedbox you have to remove %P - like this:

Code: Select all

[em_transfer_to_opposite_from_feedbox]
cmd=%COMMANDER_EXE% /A /O /P
param=/S /R=%N
button=WCMICONS.DLL,19
menu=Transfer file under cursor in feedbox to opposite panel
or as button:

Code: Select all

TOTALCMD#BAR#DATA
%COMMANDER_EXE% /A /O /P
/S /R=%N
WCMICONS.DLL,19
Transfer file under cursor in feedbox to opposite panel


-1
I have added the new (TC 10.50) parameter /P - then it can also be used to pre-select directories in the other panel, without going into that directory
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
Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

Re: Copy contens to the other window: "Transfer dir under cursor to OPPOSITE panel"

Post by *Fla$her »

2RickyGold
Everything that concerns navigation I used to do with TCFS2, as it is noticeably faster than with the call %COMMANDER_EXE%.
Since you did not request to save the focus on the folder, I suggest the variant for files (including from virtual folders):

Code: Select all

TOTALCMD#BAR#DATA
%COMMANDER_PATH%\Utils\TCFS2\TCFS2.exe /ef tcm(2026-msg(1074,1000))

wciconex.dll,206
Transfer object under cursor to inactive panel
Overquoting is evil! 👎
User avatar
nsp
Power Member
Power Member
Posts: 1803
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: Copy contens to the other window: "Transfer dir under cursor to OPPOSITE panel"

Post by *nsp »

Just in case, you can also create two em_command like:

Code: Select all

[em_cdTarget]
cmd=CD
param=%T%M

Code: Select all

[em_TransferToOpposite]
cmd=cm_FocusTrg,CM_WAIT 2,em_cdTarget
button=WCMICONS.DLL,19
menu=Set Folder to opposite Panel
The em_TransferToOpposite do all the job ! it can fail on some folder...
RickyGold
Junior Member
Junior Member
Posts: 18
Joined: 2008-09-23, 13:51 UTC

Re: Copy contens to the other window: "Transfer dir under cursor to OPPOSITE panel"

Post by *RickyGold »

Thanks to petermad, Fla$her and nsp for the kind replies.
Unfortunately, seems to me that the exact same behavior of the Ctrl-LeftArrow & Ctrl-RightArrow is not obtainable through a single button, and also the "Left-Right" instead of "Target-Source" kind of parameter make things more difficult.
A pity but not a drama: the [Mar 22, 2021] solution by petermad already made the operation of my environment much better than before.
Thanks again to all of you.
Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

Re: Copy contens to the other window: "Transfer dir under cursor to OPPOSITE panel"

Post by *Fla$her »

RickyGold wrote: 2022-06-25, 21:36 UTCseems to me
So it seems to you, or can you confirm it with something?
Overquoting is evil! 👎
Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

Re: Copy contens to the other window: "Transfer dir under cursor to OPPOSITE panel"

Post by *Fla$her »

Since %Q became available at 10.51, I will publish the second option with TCFS2 (it does not have the versatility of the first, but let it be):

Code: Select all

TOTALCMD#BAR#DATA
%COMMANDER_PATH%\Utils\TCFS2\TCFS2.exe
%Z/ef "tcd(,<`%Q%V\:`>,S)"
wciconex.dll,206
Transfer object under cursor to inactive panel
Overquoting is evil! 👎
Post Reply