Sublime Forum

Slow backspace in Ctrl-P

#1

When using fuzzy search, typing in characters is really quick but deleting characters (e.g. backspace) is very slow in comparison. I think this happens because while typing in characters ST is only filtering the existing set of results which keeps getting smaller and smaller but while deleting characters it looks like ST is filtering all the files in the project. Has anyone else noticed this?

0 Likes

#2

You’re probably about right. Drilling down requires filtering the current dataset (light) where the reverse requires requerying the entire dataset (heavy), unless some caching is employed within Sublime - which doesn’t appear so.

Generally I only encounter such issues on projects with a huge amount of files. For example, projects using node and npm end up with a massive amount of (sometimes repeating) files in the node_modules dir. In such cases, I’m rarely interested in Sublime searching all those extra files and I usually don’t want them showing up in Ctrl+P. Fortunately, Sublime has fine grained ways of excluding stuff from Ctrl+P. If you think that might be useful, do a little searching or post back here and I’ll point you in the right direction.

:slightly_smiling:

1 Like