How to change some command keys

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
chudq
Junior Member
Junior Member
Posts: 10
Joined: 2004-03-20, 18:10 UTC

How to change some command keys

Post by *chudq »

I am new in TC. I have a question about TC. Is there any way to change some command keys? For example, I am used to Explorer's keys for rename(F2) and refresh(F5). However, the rename and reread command keys in TC are different.

Another question is how to expand a tree view by pressing * key? It is a standard key in Microsoft tree view control, but TC does not support it. Any way to achieve the same result or define a key for this new command?

I like TC any way!

D. Chu
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

Look at Configuration -> Options -> Misc. -> Redefine Hotkeys
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
TucknDar
Senior Member
Senior Member
Posts: 227
Joined: 2003-02-07, 09:44 UTC
Location: Oslo
Contact:

Post by *TucknDar »

better yet, look for [shortcuts] in wincmd.ini.

The worst design in TC is probably the hotkey-dialog. It's hopeless, IMO ;) Sorry.
license #76904
IGL
Member
Member
Posts: 179
Joined: 2004-02-26, 10:47 UTC
Location: Poland

Post by *IGL »

But what about directory expanding (* in Explorer). Honestly, I never use that, I always expand only these dirs that I need to expand.
There is a workaround however - and you can do it with just one key: just press and hold down the Right Arrow key. Depending on the number of directories after a couple of seconds or minutes or half an hour you will have the tree fully expanded :D .
No, no, I'm just kidding! I do not know how to achieve it easily. But I never need it. You can use Find File to find a directory or to display the list of all directories (Find File / tab Advanced / Attributes / Directory - mark the selection then Start Search then Feed to Listbox).

Would this be enough? Maybe, tell us what for do you need * (expand brach) in practice and maybe we will think of some workaround or provide other way to perform it.

Or maybe somebody knows how to do branch expand on tree view?
:-)
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

A command---

Post by *Clo »

2IGL
:)  Hello Chris !
Or maybe somebody knows how to do branch expand on tree view?
• What about the command:

Code: Select all

cm_DirBranch=2026
• Avoid to use it for the root of a big drive, or else you'll have to wait for a long while…   :P
• I don't understand why that command is located in the "Commands" menu, instead the "Show" menu... ?

:mrgreen:   Kind regards,
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
chudq
Junior Member
Junior Member
Posts: 10
Joined: 2004-03-20, 18:10 UTC

Re: A command---

Post by *chudq »

Clo wrote:2IGL
:) Hello Chris !
Or maybe somebody knows how to do branch expand on tree view?
• What about the command:

Code: Select all

cm_DirBranch=2026
I don't get it

• Avoid to use it for the root of a big drive, or else you'll have to wait for a long while… :P
• I don't understand why that command is located in the "Commands" menu, instead the "Show" menu... ?

:mrgreen: Kind regards,
Claude
Clo
The reason of using * to expand a full sub tree displayed is that it is a very convenient way to get a whole picture of a subtree and jump to a dir quickly. I understand that many people don't know it. However, it is a default function for all MS tree controls. When you know it, you may like it and get used to it (image that you could avoid to click + many times to a whole subtree displayed if knew one * key to get the same result).

I tried to remapping F2 and F5. Thanks for the help. The only thing I think TC missing is that after remapping a default cmd such as F5, the UI button for F5 is still for copy even though it does not work any more. It should be able to update UI after remapping or provide option for user to update its caption (such as F5=cm_RereadSource;Refresh).
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

2TucknDar
I also prefer .ini but... not everyone does.
Anyway this option could be really redesigned in future.
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

chudq,
The only thing I think TC missing is that after remapping a default cmd such as F5, the UI button for F5 is still for copy even though it does not work any more. It should be able to update UI after remapping or provide option for user to update its caption (such as F5=cm_RereadSource;Refresh).
You can download the Egnlish language file from http://clubtotal.free.fr/modules.php?name=Downloads&d_op=viewdownload&cid=30 , edit string 1076, place this file into the Language dir in TC's dir and then select this as the language to use in TC's Options - Configuration - Language.

HTH
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Oh BTW, you know about the option in Configuration - Options - Display - Always load complete directory tree, right?

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
IGL
Member
Member
Posts: 179
Joined: 2004-02-26, 10:47 UTC
Location: Poland

Post by *IGL »

Hacker, It solves the problem with *. I forgot about it. NC and old verions of WC had this as default option, as far as I remember. But I never used it!
However - what if you want to expand only part of the tree (just one branch)?.
Well, we could use subst X: . and open tree for drive X: :)
:-)
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Well, we could use subst X: . and open tree for drive X:
Was my first thought, too. ;)

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Post Reply