[REQ] Hotkey for Copy tab to other panel command

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
gbo
Senior Member
Senior Member
Posts: 329
Joined: 2005-03-31, 19:58 UTC
Location: Lausanne (Switzerland)

[REQ] Hotkey for Copy tab to other panel command

Post by *gbo »

I used to use this hotkey in Midnight Commander [Alt-O -> Copy tab to other panel] and although this command exists in TC7 (right click on a tab) I see no way to map this hotkey to a shortcut [Alt-O] as it seems it is not part of the Keyboard remapping tool commands AFAIS?

Could it be added, please :?:

TIA
Gil
Licence #17346

90% of coding is debugging. The other 10% is writing bugs.
User avatar
StickyNomad
Power Member
Power Member
Posts: 1933
Joined: 2004-01-10, 00:15 UTC
Location: Germany

Post by *StickyNomad »

Hm, indeed there doesn't seem to exist a cm_command to copy the tab. I never missed it so far because I get along well with CTRL+SHIFT+CursorUp.

But I'm not against adding a command for this :)
User avatar
gbo
Senior Member
Senior Member
Posts: 329
Joined: 2005-03-31, 19:58 UTC
Location: Lausanne (Switzerland)

Post by *gbo »

StickyNomad wrote:Hm, indeed there doesn't seem to exist a cm_command to copy the tab. I never missed it so far because I get along well with CTRL+SHIFT+CursorUp.
I knew CTRL+CursorUp but not CTRL+SHIFT+CursorUp thanks for the tip it is better than nothing although I still request to add it. :wink:

Bye
Gil
Licence #17346

90% of coding is debugging. The other 10% is writing bugs.
Retko
Junior Member
Junior Member
Posts: 2
Joined: 2022-07-13, 09:01 UTC

Re: [REQ] Hotkey for Copy tab to other panel command

Post by *Retko »

+1 for this command. (Yep I know, 15 years later :) )
User avatar
Stefan2
Power Member
Power Member
Posts: 4133
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: [REQ] Hotkey for Copy tab to other panel command

Post by *Stefan2 »

See text file "TOTALCMD.INC":

CTRL+CursorUp
cm_OpenDirInNewTab=3003;Open dir under cursor in a new tab (((if there is a file under cursor > just double the current tab in same panel)))

CTRL+SHIFT+CursorUp
cm_OpenDirInNewTabOther=3004;Open dir under cursor in a new tab in other window (((if there is a file under cursor > double the tab but to other panel)))





Add keyboard shortcut Hotkey to an em_ or cm_ command

* Open "Configuration > Options > Misc."

* by "()Hotkey" choose a free key combo as keyboard shortcut (here Alt-O)

* For Command: click on the magnifying glass

* Choose the wanted command by double clicking on it. (here cm_OpenDirInNewTabOther)
(To filter type em_ or cm_ and maybe more letters or just an keyword like 'copy')

* Apply with the green check mark button!!!

* Close the options dialog with [OK]
* Click on OK

((( taken from https://ghisler.ch/board/viewtopic.php?p=388478#p388478 )))




- - -
History.txt wrote:New in Total Commander 6.0 final (17.11.03):
- cm_OpenDirInNewTab internal message to open dir under cursor in new tab
 
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [REQ] Hotkey for Copy tab to other panel command

Post by *petermad »

You can use these two em_commands (put them in your usercmd.ini file) to copy or move the current tab to the other panel:

Code: Select all

[em_copytab]
cmd=cm_FocusTrg,cm_OpenNewTab,cm_FocusTrg,cm_MatchSrc,cm_FocusTrg
menu=Copy current folder tab to opposite panel

[em_movetab]
cmd=cm_FocusTrg,cm_OpenNewTab,cm_FocusTrg,cm_MatchSrc,cm_CloseCurrentTab,cm_FocusTrg
menu=Move current folder tab to opposite panel
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
Retko
Junior Member
Junior Member
Posts: 2
Joined: 2022-07-13, 09:01 UTC

Re: [REQ] Hotkey for Copy tab to other panel command

Post by *Retko »

petermad wrote: 2022-07-13, 11:10 UTC You can use these two em_commands (put them in your usercmd.ini file) to copy or move the current tab to the other panel:

Code: Select all

[em_copytab]
cmd=cm_FocusTrg,cm_OpenNewTab,cm_FocusTrg,cm_MatchSrc,cm_FocusTrg
menu=Copy current folder tab to opposite panel

[em_movetab]
cmd=cm_FocusTrg,cm_OpenNewTab,cm_FocusTrg,cm_MatchSrc,cm_CloseCurrentTab,cm_FocusTrg
menu=Move current folder tab to opposite panel

Hi. This is great. I was actually able to make it work. Not exactly, but I used command you provided for moving. Made a screenshot where I have put it, for others. SO thank you :)

Image: https://i.postimg.cc/pX0xmpp7/abc.jpg
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [REQ] Hotkey for Copy tab to other panel command

Post by *petermad »

2Retko

Good. It was implied that the commands should be used for a keyboard remapping or in a button.

I use them myself in my Extended Menu (see signature). https://madsenworld.dk/tcmd/tabsmenu2.png
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
Post Reply