13

I have a music folder that contains about 15 other folders, each only a single level deep. Is there any way, via keyboard or other, to open the music folder in list view and expand all of the contained folders as well? I know about using * to open a nested folder, but that only opens the immediate children of of the selected folder.

Here's the directory structure:

Music
   Billy Joel
     Storm Front
         Shameless
         She's Got a Way
     Glass Houses
         For the Longest Time
   Coldplay
     Parachutes
         Yellow
     X&Y
         Fix You

What I want to be able to do is open Nautilus to the Music folder, then click or type something to expand all the folders to display their contents as above. Right now, when I go into Music, all I see is:

Music
   Billy Joel
   Coldplay
3

2 Answers 2

8

There is an upstream bug about this, but unfortunately it's open since 2003 and probably won't receive a fix in the near future.

Don't know if there's a Nautilus script that allows you to expand/collapse all folders.

What does work, is to expand directories "level-by-level" by using the asterisk (*) multiple times (first time it expands all subdirectories, second time all subdirectories of subdirectories, etc.) - it's close to what you want, but admittedly not optimal.

2
  • 1
    Yeah, that's what I ended up doing, but it took me almost 10 minutes to do it. Kind of ridiculous for something that really should be an existing option.
    – EmmyS
    Nov 11, 2010 at 18:57
  • Was going to ask this for 12.04.1. Sad that the option for Collapse All/Expand All is not present. Sep 3, 2012 at 17:19
4

The list may be expanded by first selecting List View from the Main Toolbar, selecting the folder that you want to expand, then pressing the asterisk (*) key on the numeric keypad or on the regular typing keyboard. (On U.S. keyboard layouts asterisk is Shift-8, for example.)

If you select the top directory in the list, it and all sub-directories below will be expanded by one level.

If you select a directory further down the list, then it and all sub-directories below will be expanded by one level, but not those above.

Each time the asterisk key is pressed, the list will be expanded by an additional level.

To collapse the list in a single step, press the / or - key on the numeric keypad, or their equivalents on the typing keyboard.

If you view the left side pane in Tree view, the same keystrokes work there, too, except individual file names are not displayed.

(Determined experimentally with Nautilus 2.30.1 on Ubuntu 10.04.3 LTS.)

4
  • 1
    Very nice, indeed. Aug 13, 2012 at 2:36
  • That's still not a single step to open them all, though. I have to go through each "top-level" subfolder and click the asterisk to open that subfolder to its next level. I'm looking for a single step that will open all folders to ALL levels. What you're suggesting is exactly the same as the answer I got almost 2 years ago, which is NOT the answer I'm looking for.
    – EmmyS
    Aug 13, 2012 at 14:23
  • EmmyS, once the desired folder is selected in List View, it takes about 1/2 second to tap the asterisk key 5-10 times to expand all its sublevels, or press and hold the asterisk key for a couple of seconds for the autorepeat function to do it for you. There may be a delay of several seconds, even on a fast machine, because when you do that, you're asking the computer to do a great deal of work.
    – user39415
    Oct 16, 2012 at 19:06
  • It may be the case that it doesn't take long to do what you suggest. The fact remains that it doesn't answer my question, which was asking if there was a one-click way to do it.
    – EmmyS
    Feb 4, 2014 at 18:22

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .