Page 1 of 1

Command to duplicate Src Path to target

Posted: 2013-07-02, 18:52 UTC
by aviasd
Currently there is no command that i'm aware of to duplicate the current dir I'm working on to the other side. there are the Ctrl+Left/Right to copy to the other side but if I'm standing on archive/folder it will go inside to that folder/archive.
For me it's really useful for instances where i want to unpack to the current dir/do some work inside the current dir with two panels ( I know about the Alt+Shift+F9 but would rather something more generic )

Currently i'm using AHK script to do this with Ctrl+Shift+Right/Left...

Posted: 2013-07-02, 19:21 UTC
by MVV
Use button:

Code: Select all

Command: %COMMANDER_EXE%
Parameters: /O /S /R=%Z%P
Read TOTALCMD.chm topic 4.a for details.

Posted: 2013-07-02, 23:32 UTC
by Hacker
aviasd,
Commands - Target=Source
cm_MatchSrc

Also: Alt-F9 - Delete - (Alt-S -) Enter

MVV,
I expect better of you. :D

Roman

Posted: 2013-07-03, 05:35 UTC
by MVV
My way is more universal one. :D

BTW I haven't understood how unpack/test archive(s) commands may help here...

Posted: 2013-07-04, 19:26 UTC
by aviasd
I usually do unpacking with alt+F9 to the same folder as the archive.

So, if I'm standing on the archive and do CTLR+LEFT/RIGHT to that dir get the archive instead of the current path I'm in and then I have to do TAB,BACKSPACE,TAB to get back to the containing dir.
cm_matchSrc does exactly what I need...
So thx!

alt+f9 does extraction of archives on my config...didn't get the comment there..

Posted: 2013-07-04, 20:48 UTC
by white
aviasd wrote:alt+f9 does extraction of archives on my config...didn't get the comment there..
The comment "Also: Alt-F9 - Delete - (Alt-S -) Enter" made by Hacker means:

To unpack to the same folder as the archive
- Press Alt-F9
- Press Delete (or ".")
- (Press Alt-S to unpack each archive to a separate folder)
- Press Enter

Posted: 2013-07-05, 05:36 UTC
by MVV
- (Press Alt-S to unpack each archive to a separate folder)
BTW one can edit wincmd.ini to set this option checked by default:

Code: Select all

[Packer]
UnZIPSeparateSubdirs=-2

Posted: 2013-07-05, 08:28 UTC
by aviasd
:) cool. thx for the idiot's guide :)