Sublime Forum

How to open the containing folder in the sidebar when openning a file?

#1

When I double click to open a file in the Windows explorer, I want the sidebar to show the folder where the file is in. Is there a way to enable this feature?

0 Likes

#2

There is no setting that would do this, no. The side bar can only show folders that you specifically open in it.

In addition, when a folder is added to the side bar, Sublime scans the entire folder structure beneath it and shows that to you as well (this powers the Goto Anything functionality).

So while you can in theory get this power by adding the containing folder to the side bar via a plugin when a file opens, you have to be prepared for Sublime to gather every file and folder contained inside of that folder, which takes CPU and Memory that you may not be willing to give up. For example if you opened C:\Sample.txt, Sublime would have to crawl your entire C: drive to show you every file and folder it contains, and keep all of that information in memory.

0 Likes

#3

That’s a good point. I have never thought of this issue. May be it’s not a good idea to do so. Anyway, thanks for your explanation.

0 Likes