How to make an Alias for a path in Configuraton>Misc.?

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Ahu_Lee
Junior Member
Junior Member
Posts: 37
Joined: 2016-08-09, 19:34 UTC
Location: Russia

How to make an Alias for a path in Configuraton>Misc.?

Post by *Ahu_Lee »

Hello everyone,

How can I add something like this

Code: Select all

cd %UserProfile%\OneDrive\Documents
to this:

[img]https://i.ibb.co/sbJKnVB/10-12-2021-18-47-20.png[/img]

In the above example I simply want to go to the Documents folder by typing "docs" in the TC Command line.

I realize that probably this Alias thing in TC doesn't work the way I expected, but what would be the "correct" way of doing a similar thing?
Last edited by Ahu_Lee on 2021-10-12, 16:28 UTC, edited 1 time in total.
User avatar
Stefan2
Power Member
Power Member
Posts: 4132
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: How to make an Alias for a path in Configuraton>Misc.?

Post by *Stefan2 »

step 1: create user defined command , for ex. named em_CDtoDocs with Command: cd %UserProfile%\OneDrive\Documents
step 2: add an alias , for ex. named gotodocs or just gtd or your "docs", to your new command em_CDtoDocs
step 3: use   em_CDtoDocs   OR   gtd   in TCs command line

See "Configuration > Options > Misc. >>> Redefine hotkeys (Keyboard remapping)".
More info > https://ghisler.ch/board/viewtopic.php?p=344777#p344777




 
Ahu_Lee
Junior Member
Junior Member
Posts: 37
Joined: 2016-08-09, 19:34 UTC
Location: Russia

Re: How to make an Alias for a path in Configuraton>Misc.?

Post by *Ahu_Lee »

Thank you very much, Stefan. Your answer is a great help!
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Re: How to make an Alias for a path in Configuraton>Misc.?

Post by *MVV »

Perhaps it should be mentioned that TC has customized directory hotlist menu that allows to open frequently used directories quickly. E.g. if one adds mentioned command to it with title "&Documents", it will be possible to jump to this directory by pressing Ctrl+D and then D.
Post Reply