Sublime Forum

Lazy folder loading

#1

Hi,

I have done a fair amount of searching online and can’t find this feature.

The problem: I work remotely on many files and often need to keep multiple directories in the left pane for convenience sake (some have many, many subdirectories). As they’re remote, it can take a few minutes or even hours to load to the point that I need it to (if it gets there at all).

What I’d like is to make the directory list load on demand. Each folder would start the same as when Sublime was last closed, however none of the list under the current expansion point would load until the folder is manually expanded.

Does this make sense? Is this currently possible in Sublime, either directly or through a plugin?

Many thanks in advance.

Kind regards,
Richard

0 Likes

#2

This is not how Sublime Text works internally. All the Goto… features rely on a full map of all files opened by a sublime-project. The files displayed by the sidebar are taken from this internal map/database. Therefore lazy loading is not possible at this point.

But maybe the indexer is what takes most of the time as it opens and reads each file with text content. Depending on network speed, amount and size of the files this can take a while. You could try to set "index_files": false in your Preferences.sublime-settings when working on network shares.

3 Likes

#3

Thanks for the explanation @deathaxe. I will try this and see how it goes over the next few months. Right now I generally only work off one server so decided to go through the list and remove all other IPs, therefore it has sped up a lot anyway.

0 Likes

#4

Hi, I am having the same issue as ClarkeyBoy1987 and would like the lazy loading feature. I don’t mind that Goto Anything would not find files in folders that haven’t been scanned yet.

I am getting banned from the remote server because I send too many requests (caused by directory scanning).

0 Likes