Page 1 of 1

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

Posted: 2021-03-22, 11:39 UTC
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

Re: Copy contens to the other window

Posted: 2021-03-22, 14:51 UTC
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

Re: Copy contens to the other window

Posted: 2021-03-23, 11:07 UTC
by Rammel
I use the usercmd.ini version; it works well!

Thank you SO much!

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

Posted: 2021-03-23, 12:44 UTC
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.

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

Posted: 2021-03-23, 15:33 UTC
by Rammel
Ok. Thanks again!

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

Posted: 2022-06-19, 03:16 UTC
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.

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

Posted: 2022-06-19, 08:33 UTC
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

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

Posted: 2022-06-19, 09:52 UTC
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

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

Posted: 2022-06-19, 10:44 UTC
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...

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

Posted: 2022-06-25, 21:36 UTC
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.

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

Posted: 2022-06-25, 21:48 UTC
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?

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

Posted: 2022-08-14, 10:46 UTC
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