Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.