Page 1 of 1

cm_GoIntoFirstSubdir to navigate into deep dir hierarchies

Posted: 2011-02-23, 13:09 UTC
by inkarkat
I often have to navigate deep directory hierarchies, e.g. Java package structures, that only contain a single subdirectory. For example:

Code: Select all

C:\work
     + project
         + src
            + main
               + java
                  + com
                     + foo
                        +bar.java
... you get the idea.

Currently, this requires me to use <Enter> on the directory, followed by <Down> to navigate to the first subdir. And repeat, and repeat, until I get to the files way down that I'm interested in. (For a single tree such as shown, a workaround is to use a temporary flattening via <Ctrl-B><Down><Ctrl-B> - or I could use double-clicks with the mouse, but I avoid mouse use with TC.)

I'd love to have a command cm_GoIntoFirstSubdir that I can map to e.g. <Shift-Enter>. Essentially, this command only has to combine the <Enter> and <Down> navigations (plus maybe some checking for empty directories). This would change the tedious <Enter><Down><Enter><Down>... to a much more quick and ergonomic <Shift-Enter><Shift-Enter>...

Thanks for considering this little enhancement! I love TotalCommander; am a registered user since 2000!

-- regards, ingo

Posted: 2011-02-23, 14:43 UTC
by Vochomurka

Posted: 2011-02-24, 08:07 UTC
by MVV
Maybe it would be even simpler to use Ctrl+B to show all files inside of subfolders? So you don't need to navigate to deeper folder in order to see the file bar.java - you may see it using Ctrl+B in e.g. src or main or even in project dir (if there is no other projects in same folder).

Posted: 2011-02-25, 14:25 UTC
by inkarkat
Looks like PowerPro is something like AutoHotkey (which I've been using for various Windows automation and macro tasks). Thanks for the link! I'd still prefer something more lightweight, built into TC, and working on all sorts of local and non-local directories.

I dunno about the script's performance, but if there is noticeable delay, I'd rather fire off <Enter><Down> in rapid succession than wait for that script.

Posted: 2011-02-25, 14:29 UTC
by inkarkat
MVV wrote:Maybe it would be even simpler to use Ctrl+B to show all files inside of subfolders? So you don't need to navigate to deeper folder in order to see the file bar.java - you may see it using Ctrl+B in e.g. src or main or even in project dir (if there is no other projects in same folder).
<Ctrl-B> (I had mentioned this) only works when there's just one sub-tree, and only allows to go to the leaf directories, assuming a well-balanced directory tree. What if I just want to quickly go down 4 directories in a 10-directory-deep tree?

Posted: 2011-03-10, 00:45 UTC
by Phr3d
not a solution, but if you go there often enough, Alt-DnArrow would bring up recent directories. I don't know why/how they are saved, so don't know if it can help.