Click on drive, move the drive to top of folder tree?

I have a number of drives on my computer.

If I have C: selected and have C: expanded, if I click on the D: drive icon in the toolbar, I end up with D: selected in the folder tree at the very bottom of the folder tree.

I'd like to have it moved to the very top of the folder tree when I click on the drive.

how can I accomplish this?

Did you try this: Settings > preferences > listers > folder tree > Expand selected branch AND Collapse non-selected branches

My folder tree doesn't always collapse (don't know why), so I use this button:

go /mycomputer go root=collapse Go "c:\"
You probably don't need go /mycomputer

Christiaan - I tried the two preference settings, and it works better.

However, I can select a drive and have it highlighted, and have it 1/2 way down instead of at the top.

For the 'Go' commands, are you suggesting that I somehow map these commands to the drive buttons (not sure how), or create new buttons to perform these actions?

What I'm really after is to have it function like the 'start folder tree at current drive' - but still be able to get to the desktop, etc. at times.

Possibly I should create 2 'Style's, one that only displayed the folders for the current drive, and one that displayed the full tree structure of the computer.

BTW - I've never used 'go' commands. Is there a command window to test them?

Thanks!

Just select 'start folder tree at current drive' to only show the current drive being used and click
Go > desktop to get to the desktop or create a button on your toolbar with the function: Go /desktop or Go /mycomputer :wink:

BTW: You have to create new buttons for the GO commands, you can't edit the drive buttons.
To test commands, just add a Command Field (a text entry field) to a Toolbar and enter a command string.

Christiaan - using the 'Go > desktop' command would probably work.

But

  1. is it possible to set the

Expand selected branch
Collapse non-selected branches
Start Folder Tree At

using commands?

  1. Are the Listers/Folder Tree preferences global to all Styles, or is there a way to have different settings depending on the style?

Thanks!

To expand or collapse branches, you have to change the settings in Preferences > Listers > Folder Tree

But when you want to create buttons, you could use the commands below:

To Collapse the root: GO ROOT=collapse
To Expand a drive: GO EXPANDTREE PATH C:

I don't think there are Button Commands for 'Start Folder Tree At ...'.

When you Select 'Start folder tree at current drive' to only show the current drive being used, this setting is Global, as far as I know ...