How do I close a folder in Sublime Text?

nmz787 picture nmz787 · Feb 22, 2014 · Viewed 20.7k times · Source

After opening Sublime Text 3, I chose to open a folder. This was a git repo, containing some folders that were static files which are cluttering up the folder list.

When I right-click on a folder, there is no 'close' option. The antonym of open is close, not delete, so I'm definitely not clicking that!

I've heard Sublime is very scriptable, is there some way I can add a close button to the right-click menu of the folder list?

edit: I just created a test directory structure: test/ test/testA/ test/testB/ test/testC/

opened the test folder from Sublime Text 3, then clicked delete from the right-click menu on testB, after clicking confirm or yes to confirm, I saw the directory WAS ACTUALLY DELETED, not deleted from Sublime's state. :(

Answer

rohithpr picture rohithpr · Sep 27, 2014

I'm using Sublime Text 3. Right click on the folder and then select "Remove folder from project". Guess you don't have it in the older versions.