How fast does file navigation move in Sublime Text 2?

In Sublime Text 2, you can simply start the editor, drag the folder into it and press Ctrl + P to open any file in this folder soon. As far as I can see, the number of files in a folder does not matter, and it seems that it does not perform indexing at all. To be clear, Iโ€™m not talking about the speed of opening a particular file, Iโ€™m talking about an available filtering function that allows you to filter between all the files in a folder to find the one you want. For instance: screenshot

In comparison, Vim and Emacs pretty much need some kind of index to quickly find files (FindFile for Vim, Ctags or Cscope for Emacs). ST2, on the other hand, doesnโ€™t need anything, faster than running โ€œfindโ€ it will recursively list all the files in the directory, and even more surprisingly, neither CPU usage nor RAM usage increases.

I'm just wondering if anyone has any ideas on how ST2 does this under the hood.

+6
source share
1 answer

I believe that Sublime Text 2 scans files in the background when opening a folder / project. Calm about it. Various plugins perform their own scans, which are not so fast (e.g. ctags). Internal relationships regarding how ST2 is not documented or opened.

And it is not so fast, some people have problems with this: http://sublimetext.userecho.com/topic/49572-cache-folder-treegoto-anything-for-remote-volumes/

http://sublimetext.userecho.com/topic/49572-cache-folder-treegoto-anything-for-remote-volumes/

+2
source

All Articles