tags:

views:

36

answers:

2

On my macbook, when I am exploring my filesystem and then open a file in textmate, it just opens the code window.

How can I open the textmate file explorer?

How can I jump to a file that is in a "project"? i.e. that is a file within the root folder or sub folders?

A: 

One way is to create a new project in Textmate using the New Project menu item (from the File menu) then add files and folders to the project using the buttons at the bottom of the project pane. Save the project with the Save Project menu item. You can then re-open the project later by either double-clicking on the project file in the Finder or opening inside of Textmate.

Ned Deily
A: 

An alternative solution, that I personally prefer, is to:

Assumptions:

  • Your desired folder with the project sits at:

    /Users/username/projects/example/

Solution 1:

  1. Open a new console window or console tab.
  2. Navigate inside your project folder by typing:

    cd /Users/username/projects/example/

  3. Open the current folder as Textmate project with file explorer by typing:

    mate .

Solution 2:

  1. Open a new console window or console tab.
  2. Open your project within Textmate with file explorer by typing:

    mate /Users/username/projects/example/

Explanation

The 'mate' command starts up your Textmate editor from the command line. You can pass a path argument to the 'mate' command, which does not have to be a file, but can also be a folder. Once you pass in a folder as an argument, Textmate will open up in project mode and therefore displays a file browser window.

murphyslaw
but what about if I just open a single file, how do I see the file explorer then?
Blankman
I'm sorry, the only way I can think of, would be to open the folder first and then 'cmd + t' to quickly jump to the file.
murphyslaw