Jump to directory

English support forum

Moderators: Hacker, petermad, Stefan2, white

User avatar
robinsiebler
Senior Member
Senior Member
Posts: 460
Joined: 2003-03-05, 21:04 UTC

Jump to directory

Post by *robinsiebler »

In 4NT, if I want to change to a dir, I can simply type 'cd foo' and if foo exists, I will be taken there. If there are more than one foo, I will be presented with a list of dirs. I wonder if there is a way to do this in TC? Since TC saves a list of all of the directories (if you have this enabled), I would hope this is possible. I know about (and use) the directory menu, but I was looking for a quick and dirty way to jump to a directory.
Robin L. Siebler
Personal License #13949
------------------------------
"Bother", said Pooh, as he deleted Windows
User avatar
fabiochelly
Power Member
Power Member
Posts: 603
Joined: 2003-02-05, 12:03 UTC
Location: Rambouillet, France

Post by *fabiochelly »

The hotlist (CTRL+D) is not enough ?
Fabio Chelly.
#60241
Lorsqu'on s'occupe d'informatique il faut faire comme les canards...
Paraître calme en surface et pédaler comme un forcené par en dessous
User avatar
robinsiebler
Senior Member
Senior Member
Posts: 460
Joined: 2003-03-05, 21:04 UTC

Post by *robinsiebler »

If you have dirs that you only occasionally jump to,
you might not want to clutter your menu with such directories or have to create a menu (that you might forget about) for them.
Robin L. Siebler
Personal License #13949
------------------------------
"Bother", said Pooh, as he deleted Windows
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6951
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

Use the Directory Tree command (Alt-F10) for this.
You type the first few characters of the name and it shows you the first match. Typing CTRL-Enter shows you the next and so on...
User avatar
wanderer
Power Member
Power Member
Posts: 1640
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Re: Jump to directory

Post by *wanderer »

robinsiebler wrote:In 4NT, if I want to change to a dir, I can simply type 'cd foo' and if foo exists, I will be taken there. If there are more than one foo, I will be presented with a list of dirs. I wonder if there is a way to do this in TC? Since TC saves a list of all of the directories (if you have this enabled), I would hope this is possible. I know about (and use) the directory menu, but I was looking for a quick and dirty way to jump to a directory.
I see your point. Something like the command line in Win2k and above, you type the first 2-3 letters and then you can press TAB and the system cycles you through all dirs starting with what you typed. Neat, i'd like that too.
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
User avatar
pdavit
Power Member
Power Member
Posts: 1529
Joined: 2003-02-05, 21:41 UTC
Location: Kavala -> Greece -> Europe -> Earth -> Solar System -> Milky Way -> Space
Contact:

Post by *pdavit »

You also have the directory history feature (Alt+Down Arrow) and the up coming tabbed architecture. Too many available options!

Here’s the list:
- Directory HotList
- Directory History
- Directory Tree
- Tabs (not available yet!)

I have to admit though that I had made in the past a suggestion for a “temporary folder bookmarking” system as I was experiencing similar problems.
"My only reason for still using M$ Window$ as an OS is the existence of Total Commander!"
Christian Ghisler Rules!!!
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

Horst.Epp wrote:Use the Directory Tree command (Alt-F10) for this.
You type the first few characters of the name and it shows you the first match. Typing CTRL-Enter shows you the next and so on...
Directory Tree is a nice idea to jump to another directory, but it is completely useless on my machine: my "Treeinfo.wc" file is about 5MB large....-> very slow
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6951
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

Lefteous wrote:
Horst.Epp wrote:Use the Directory Tree command (Alt-F10) for this.
You type the first few characters of the name and it shows you the first match. Typing CTRL-Enter shows you the next and so on...
Directory Tree is a nice idea to jump to another directory, but it is completely useless on my machine: my "Treeinfo.wc" file is about 5MB large....-> very slow
Sounds strange.
My Treeinfo.wc is about 150k and has over 3000 directories
So how many dirs do you have ?
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

Horst.Epp wrote:
Lefteous wrote:
Horst.Epp wrote:Use the Directory Tree command (Alt-F10) for this.
You type the first few characters of the name and it shows you the first match. Typing CTRL-Enter shows you the next and so on...
Directory Tree is a nice idea to jump to another directory, but it is completely useless on my machine: my "Treeinfo.wc" file is about 5MB large....-> very slow
Sounds strange.
My Treeinfo.wc is about 150k and has over 3000 directories
So how many dirs do you have ?
~42000
User avatar
pdavit
Power Member
Power Member
Posts: 1529
Joined: 2003-02-05, 21:41 UTC
Location: Kavala -> Greece -> Europe -> Earth -> Solar System -> Milky Way -> Space
Contact:

Post by *pdavit »

Lefteous wrote:42000
!!!

So your treeinfo.wc should have been approx 2.1Mb not 5Mb based on the fact that 3000 dirs are 150k.

Any ways, if I’m not wrong the treeinfo.wc is saved whenever you call it and especially from wherever you call Directory Tree. Based on the fact that it can be found in sub-dirs it might be a good technique to call it within your frequent dirs. It might speed up the process. That’s a suggestion with reservations though and only Christian can tell us how treeinfo.wc behaves.
"My only reason for still using M$ Window$ as an OS is the existence of Total Commander!"
Christian Ghisler Rules!!!
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

pdavit wrote:
Lefteous wrote:42000
!!!

So your treeinfo.wc should have been approx 2.1Mb not 5Mb based on the fact that 3000 dirs are 150k.
It's just my pathnames seems to be longer than Horst.epp's.
pdavit wrote: Any ways, if I’m not wrong the treeinfo.wc is saved whenever you call it and especially from wherever you call Directory Tree. Based on the fact that it can be found in sub-dirs it might be a good technique to call it within your frequent dirs. It might speed up the process. That’s a suggestion with reservations though and only Christian can tell us how treeinfo.wc behaves.
It takes up to 9 seconds to load the tree - everytime.
User avatar
pdavit
Power Member
Power Member
Posts: 1529
Joined: 2003-02-05, 21:41 UTC
Location: Kavala -> Greece -> Europe -> Earth -> Solar System -> Milky Way -> Space
Contact:

Post by *pdavit »

Lefteous wrote:It takes up to 9 seconds to load the tree - everytime.

Hmmm, so I guess the file includes the whole dir structure and not the structure of the current dir. Oh, well!…
"My only reason for still using M$ Window$ as an OS is the existence of Total Commander!"
Christian Ghisler Rules!!!
User avatar
Black Dog
Power Member
Power Member
Posts: 1024
Joined: 2003-02-05, 22:17 UTC
Location: Odessa
Contact:

Post by *Black Dog »

[face=courier]On 11-07-2003 12:44:03 +0000 wanderer wrote:

w> I see your point.

No, you don't. JP Software Inc. command processors (i.e. 4DOS, 4NT&Take Command) support Extended Directory Search mode (actually "borrowed" from NIX shells as well as almost all other useful features):

__________transmission_from_clipboard____________

Extended Directory Searches use a database of directory names to facilitate changing to the correct directory. The database is used only if Extended Directory Searches are enabled, and if the explicit directory search and CDPATH search fail to find the directory you requested.
An extended directory search automatically finds the correct path to the requested directory and changes to it if that directory exists in your directory database. If more than one directory in the database matches the name you have typed, a popup window appears and you can choose the directory you want.

______________end_of_transmission________________

Actually this is what dagoon talking about.
Well, TC's TREEINFO.WC pretty much look and behave like JPSTREE.IDX so I guess such a mode is possible in TC too. But I don't think Christian would like this idea.

w> Something like the command line in Win2k and above, you type
w> the first 2-3 letters and then you can press TAB and the
w> system cycles you through all dirs starting with what you
w> typed.


AFAIK this functionality presented in NT command shell from very beginning (though was always not active by default) and also "borrowed" from NIX, actually NT was designed as UNIX killer... %)

w> Neat, i'd like that too.

Well, I use TAR - it supports BASH model of EasyType and can be integrated with TC.[/face]
User avatar
sergeycentral
Junior Member
Junior Member
Posts: 34
Joined: 2003-07-24, 02:48 UTC
Location: USA

Post by *sergeycentral »

Lefteous wrote:
Horst.Epp wrote:...but it is completely useless on my machine: my "Treeinfo.wc" file is about 5MB large....-> very slow
so delete Treeinfo.wc, and re-build ur tree.

would it be possible if you had many outdated dirs?
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

sergeycentral wrote:
Lefteous wrote:
Horst.Epp wrote:...but it is completely useless on my machine: my "Treeinfo.wc" file is about 5MB large....-> very slow
so delete Treeinfo.wc, and re-build ur tree.

would it be possible if you had many outdated dirs?
The number of directories did not change :arrow: no speedup
Maybe the algorithm isn't efficient?
Post Reply