How-to: "Go To My Documents" command?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
genie
Junior Member
Junior Member
Posts: 2
Joined: 2007-09-02, 11:20 UTC

How-to: "Go To My Documents" command?

Post by *genie »

Is there a way to create a button that creates a link to a specified file or directory.

I have lived inside of TC for 15 - 20 years. It has seen me through everything.

The task I perform often is having to go to My Documents. That task at least 4 clicks and some scrolling.

Is this possible without filling the dir path at the bottom?
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Post by *ts4242 »

There are many ways to go to any folder fast, like:

* Add it to Directory menu, Ctrl+D -> Add current dir.
* Drag it to an empty space in the toolbar.
User avatar
Stefan2
Power Member
Power Member
Posts: 4281
Joined: 2007-09-13, 22:20 UTC
Location: Europa

usercmd.ini user command internal command

Post by *Stefan2 »

 
Another idea.

You can also use TC command "CD" with a path like "%USERPROFILE%\My Documents".


Put this e.g. into an user command and write it to the usercmd.ini:
If not exist, just create it

\usercmd.ini

Code: Select all

[em_GoToMyHome]
cmd= CD %USERPROFILE%\My Documents

Next add a shortcut to that command (here: Ctrl+Shift+H)

\WINCMD.INI

Code: Select all

[Shortcuts]
CS+H=em_GoToMyHome
Restart TC.
Now you be able to press Ctrl+Shift+H and see yorself beamt to Documents.

Press Alt+ArrowDown to see a history list to go back to last folder.


- - -

Another useful command BTW is "go to root of the drive".
You can also assign a shortcut to that command:
CS+R=cm_GoToRoot

"cm_GoToRoot" is a internal command, which you can find in \TOTALCMD.INC file.

 
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Another useful command BTW is "go to root of the drive".
You can also assign a shortcut to that command:
Shortcut for this command exists for decades, and goes from DOS managers. It is Ctrl+\.
Another idea.
All of this may be done via TC dialogs w/o editing INI files. Command browser (cm_CommandBrowser) is able to create/edit user commands, and TC configuration dialog (cm_Confirmation) allows assigning shortcuts for commands w/o restarting TC.

Also it is possible in TC to add a user command to main menu via editing corresponding MNU file. It may be added to main menu itself or any/new its submenu.
User avatar
Stefan2
Power Member
Power Member
Posts: 4281
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Post by *Stefan2 »

Thanks for clarifying, MVV.

MVV wrote: Shortcut for this command exists for decades, and goes from DOS managers. It is Ctrl+\.
Fine, but not useful for german keyboard layout. So I think not about that.

According to the help "Strg+<" should work for Germans:
CTRL+< Jump to the root directory (most European keyboards)
CTRL+\ Jump to the root directory (US keyboard)
All of this may be done via TC dialogs w/o editing INI files.
Yes, but more steps to explain.



 
User avatar
solid
Power Member
Power Member
Posts: 755
Joined: 2004-08-09, 11:20 UTC

Post by *solid »

cd %$PERSONAL%
also works.
User avatar
SQUIRE
Senior Member
Senior Member
Posts: 373
Joined: 2005-06-16, 18:07 UTC

Post by *SQUIRE »

MVV wrote:
Another useful command BTW is "go to root of the drive".
You can also assign a shortcut to that command:
Shortcut for this command exists for decades, and goes from DOS managers. It is Ctrl+\.
I noticed that CTRL + \ works when a tab is 'locked' but won't when the tab is 'locked, but directory changes allowed'.

The logic seems reversed. Isn't this rather odd?
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

SQUIRE,
By default Ctrl+\ goes to locked dir of a tab instead of going to root folder, but it may be disabled with INI option LockedGoToDriveRoot=1 (there will still be a way to open locked dir using command cm_GoToLockedDir).
Post Reply