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 understand from bash I can do :

mate name/of/file.ext

And if I wanted to open up many files I can do :

mate name/of/file.ext other_file.rb some_file.txt

But what if I wanted to open an entire directory, and open up specific files as tabs as well?

Is there a command for that?

share|improve this question
up vote 1 down vote accepted

You can in Textmate 2. For example, a directory containing many javascript files you can do:

mate javascripts/*.js javascripts

This will open all files ending in .js while also opening the javascripts folder explorer.

In Textmate 1, the same command will just add the folder and the files in the sidebar tray.

share|improve this answer

You must log in to answer this question.

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