How to set a shortcut for packing files so that it will pack file to the target panel ?
Moderators: Hacker, petermad, Stefan2, white
-
- Junior Member
- Posts: 8
- Joined: 2019-09-16, 07:35 UTC
- Location: Xiamen, China
How to set a shortcut for packing files so that it will pack file to the target panel ?
Hi
I'm trying to make C+F5=cm_packfile , but when I press these keys TC just packing the files to the original path .
I check out the help manual and it says assign keys to cm_packfile will make it pack to the same directory .
Is it possible to make Total commander pack file to the target directory with other key bindings ?
I'm trying to make C+F5=cm_packfile , but when I press these keys TC just packing the files to the original path .
I check out the help manual and it says assign keys to cm_packfile will make it pack to the same directory .
Is it possible to make Total commander pack file to the target directory with other key bindings ?
Re: How to set a shortcut for packing files so that it will pack file to the target panel ?
There is no need to configure anything - just use default key Alt+F5
Re: How to set a shortcut for packing files so that it will pack file to the target panel ?
2ziyan chen
The recommended way is to assign these two shortcuts
CA+F5=cm_PackFiles
CAS+F5=cm_PackFiles
Then
Alt+F5 copies files to the archive in the target panel (default)
Shift+Alt+F5 moves files to the archive in the target panel (default)
Ctrl+Alt+F5 copies files to the archive in the source panel
Ctrl+Alt+Shift+F5 moves files to the archive in the source panel
the behavior of Ctrl when assigned to cm_PackFiles is hardcoded into TC to pack to source dir, no matter what other keys that are assigned with it.
Ctrl+F5 is by default used to Sort the files by Date. If you insist on changing that, you can use C+F5=cm_CopyToArchive to pack to target dir (requires TC 10.50 or newer).
The recommended way is to assign these two shortcuts
CA+F5=cm_PackFiles
CAS+F5=cm_PackFiles
Then
Alt+F5 copies files to the archive in the target panel (default)
Shift+Alt+F5 moves files to the archive in the target panel (default)
Ctrl+Alt+F5 copies files to the archive in the source panel
Ctrl+Alt+Shift+F5 moves files to the archive in the source panel
the behavior of Ctrl when assigned to cm_PackFiles is hardcoded into TC to pack to source dir, no matter what other keys that are assigned with it.
Ctrl+F5 is by default used to Sort the files by Date. If you insist on changing that, you can use C+F5=cm_CopyToArchive to pack to target dir (requires TC 10.50 or newer).
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
-
- Junior Member
- Posts: 8
- Joined: 2019-09-16, 07:35 UTC
- Location: Xiamen, China
Re: How to set a shortcut for packing files so that it will pack file to the target panel ?
I see .. my original intention is to assign Alt to any command that is corresponded with " view " such as the order , thumbnails , quickview , folder tree , etc .
I tried to define my own command :
[em_PackFilesTargetPanel]
cmd=cm_PackFiles
param=/T="%T%N.zip"
but obviously it does not work properly when I choose "7z" . How can I modify my command ?
I tried to define my own command :
[em_PackFilesTargetPanel]
cmd=cm_PackFiles
param=/T="%T%N.zip"
but obviously it does not work properly when I choose "7z" . How can I modify my command ?
Re: How to set a shortcut for packing files so that it will pack file to the target panel ?
2ziyan chen
cm_PackFiles packs to the target panel by default, so you don't need the /T="%T%N.zip" unless you assign em_PackFilesTargetPane to a shortcut that use Ctrl.
So use C+F5=cm_CopyToArchive instead if you want Ctrl as the modifier key.
cm_PackFiles packs to the target panel by default, so you don't need the /T="%T%N.zip" unless you assign em_PackFilesTargetPane to a shortcut that use Ctrl.
So use C+F5=cm_CopyToArchive instead if you want Ctrl as the modifier key.
Have you noticed that by default almost all commands that has to do with the view starts with Ctrl - why change that?my original intention is to assign Alt to any command that is corresponded with " view "
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
-
- Junior Member
- Posts: 8
- Joined: 2019-09-16, 07:35 UTC
- Location: Xiamen, China
Re: How to set a shortcut for packing files so that it will pack file to the target panel ?
Very appreciate your reply . BTW I think I successfully define the em_PackFilesTargetPanel command :
Code: Select all
[em_PackFilesTargetPanel]
cmd=cm_PackFiles
param=/T="%T."
button=
menu=Packing files to the target panel
-
- Junior Member
- Posts: 8
- Joined: 2019-09-16, 07:35 UTC
- Location: Xiamen, China
Re: How to set a shortcut for packing files so that it will pack file to the target panel ?
You are right ... I didn't notice that
petermad wrote: 2023-11-05, 01:13 UTC 2ziyan chen
cm_PackFiles packs to the target panel by default, so you don't need the /T="%T%N.zip" unless you assign em_PackFilesTargetPane to a shortcut that use Ctrl.
So use C+F5=cm_CopyToArchive instead if you want Ctrl as the modifier key.
Have you noticed that by default almost all commands that has to do with the view starts with Ctrl - why change that?my original intention is to assign Alt to any command that is corresponded with " view "
Re: How to set a shortcut for packing files so that it will pack file to the target panel ?
2ziyan chen
That will alway open the "Pack files" dialog in zip mode. cm_CopyToArchive will open the dialog with the last use packer chosenparam=/T="%T."
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
-
- Junior Member
- Posts: 8
- Joined: 2019-09-16, 07:35 UTC
- Location: Xiamen, China
Re: How to set a shortcut for packing files so that it will pack file to the target panel ?
That's better than my original solution .
petermad wrote: 2023-11-05, 01:26 UTC 2ziyan chenThat will alway open the "Pack files" dialog in zip mode. cm_CopyToArchive will open the dialog with the last use packer chosenparam=/T="%T."