Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I open all files in a directory with sublime text 2?

I am using windows and have successfully added sublime to the PATH. It seems that commands like -b for open in background do not work for whatever reason. My question is how can I open a directory with the command subl ./dir and open each file individually? Right now it adds it to the project and I would much rather it just open every file separately.

like image 427
Shane Avatar asked May 02 '13 05:05

Shane


People also ask

How do I open multiple folders in Sublime Text?

Open one of the projects in Sublime Text just like you always do. Do one of the following: Drag the root directory of the second project from the file explorer to the sidebar of the first project ST window. In your terminal cd to the second project and enter subl .

How do I search all files in Sublime Text?

Use the Search all shortcut: Ctrl + Shift + F , then select the folder in the "Where:" box below. (And for Mac, it's ⌘ + Shift + F ).


1 Answers

You can try

> subl dir/*

Alternatively, you can open the project in a dir > subl dir and then install EnhancedSidebar package in sublime. This allows you to select multiple file right click them and click edit. Hope this is what you're looking for.

like image 64
mkhatib Avatar answered Sep 28 '22 01:09

mkhatib