Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I don't know what I did, TextMate 2 expanded the entire files of my project in the sidebar. Now the performance drastically went down. I can't able to figure out how to collapse it.

Sidebar/Project Drawer with expanded view

share|improve this question
I have this problem all the time - I've been manually closing the folders (which gets really old). It seems to be somewhat related to the cmd-opt-n hotkey, as it always happens when I'm doing that. Would really like to see a solution. – Jesse Feb 21 '12 at 19:49

You can hold option while clicking the 'Disclosure Arrow' (the little arrow next to the directory name) to recursively collapse all subfolders.

To collapse all the directories without performing the action for every folder, do this:

  • Press control+tab to move the focus to the file drawer.
  • Press command+up arrow to 'go up a level'.
  • Hold option and click the arrow next to your desired folder.
  • Click the folder icon next to your desired directory to change the file drawer back to that directory.


share|improve this answer

I don't have TextMate 2, but does selecting the top level items and pressing work? That should be the standard shortcut for collapsing a node recursively but it's not supported by all list views.

share|improve this answer
yeah it collapses only for immediate selection :( – Logesh Paul Feb 13 '12 at 13:50
works for me in Version 2.0 (9064), thanks! – Jakob Stoeck May 14 '12 at 8:53

what works for me is:

  1. select an item in the project drawer
  2. command-a to select all
  3. hit the left arrow (right arrow expands all)

that should collapse all folders

share|improve this answer
This is great, a step in the right direction. Too bad it only collapses the top level folders though, and maintains the select-all selection when you open them. – IAmNaN Oct 30 '14 at 18:05

You must log in to answer this question.

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