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: 
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.
source share