I have many folder structures on my harddisk that are deeply nested. For such long pathes mostly there are parts in the middle that only consists of single nested subfolders (that is pretty common for source code repositories). It would be so nice to have a GO DEEP command that allows to skip all unique folders in both direction (backward/upward).
Example:
Assuming you want to navigate to a certain file Foo.java that is located at the following path:
The bold marked part in the middle of this path chain consists of 7 folders that only have a single subfolder. Thus it would be possible to just deeply navigate from src up to mars in one step by using such a convenient "GO DEEP" command (skipping all folders having only one subfolder and no files).
Is that a candidate for a new argument of the Go command or maybe a new script add-in?
PS: Unfortunately I have no idea (particurlarly the backwards way from deep to shallow) whether and how this can be done by a JScript.
You should be able to write that pretty easily using javascript. Opus provides an object for reading directory listings, so you use that to count how many folders are below the folder you're about to go into, and go into its child folder instead if there is only one, then repeat the check with the newly chosen folder.
Maybe it's better to append the appropriate folders to a string and finally pass it to DOpus Go command. Otherwise there may be the transitions of the navigation operation visible?
Thanks for the hint, I will have a look to that.
Is there any example showing how to access {sourcepath$} in a JScript (needed for backward navigation)?
Is it mandatory to perform the directory reading using the Opus object (do you have an API link for me) or can it be done by using JScript file operations as well?
Unfortunately DOpus crashed three times yesterday when using the GoUpDeep command. I guess DOpus doesn't like the fast calls of "Go UP BACK" each 50ms to walk along the parent path. Unfortunately the user needs some visual feedback to be aware that multiple folders were skipped.