Expand/Collapse project drawer folders in TextMate 2

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.

Reference: http://wiki.macromates.com/FAQ/TextMate2


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.


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