cm_GoIntoFirstSubdir to navigate into deep dir hierarchies

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
inkarkat
Junior Member
Junior Member
Posts: 3
Joined: 2011-02-23, 12:51 UTC

cm_GoIntoFirstSubdir to navigate into deep dir hierarchies

Post 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
User avatar
Vochomurka
Power Member
Power Member
Posts: 816
Joined: 2005-09-14, 22:19 UTC
Location: Russia
Contact:

Post by *Vochomurka »

Single user license #329241
PowerPro scripts for Total Commander
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post 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).
inkarkat
Junior Member
Junior Member
Posts: 3
Joined: 2011-02-23, 12:51 UTC

Post 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.
inkarkat
Junior Member
Junior Member
Posts: 3
Joined: 2011-02-23, 12:51 UTC

Post 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?
User avatar
Phr3d
Junior Member
Junior Member
Posts: 33
Joined: 2007-01-24, 09:51 UTC
Location: midwest

Post 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.
carpe` cervesi
knf (35402)
Post Reply