twolfson / FindPlusPlus

Find code quickly in Sublime Text.
MIT License
62 stars 7 forks source link

`Find: In...` not working in ST3 #12

Closed thecotne closed 7 years ago

thecotne commented 10 years ago

after trying to use that ST not responding

twolfson commented 10 years ago

This is probably caused by having too many directories in your project. We recurse and find every folder, then render them in a quick panel list. Can you try on a project with a smaller set of folders?

thecotne commented 10 years ago

sublime text also scans my project and i am using goto function and its working without any lag

it must have some workaround to scan faster can you use sublime text indexes of goto panel?

on small project it's working

twolfson commented 10 years ago

Yep, I have no idea why that would be. Feel free to look around at their behavior and see if there is anything I am missing. I am on a break at the moment.

zanuka commented 9 years ago

Find: In... works fine for me in ST3.

twolfson commented 9 years ago

@thecotne It's been a year since this was initially reported. Is the issue still occurring?

thecotne commented 9 years ago

@twolfson i tested and yes issue is still occurring

i have project with some node_modules installed so node_modules has very big directory tree when i first launch Find: In... it responds with very small lag but when i start searching for something that is very common like node it's very laggy if i search for something that will have small mount of results it's not laggy

btw i switched from windows to linux i am testing it with ubuntu 14

twolfson commented 9 years ago

Can you elaborate on "searching for something"? Is this after you have selected a folder or when you are filtering the list of folders?

thecotne commented 9 years ago

when i am filtering the list of folders

twolfson commented 9 years ago

Ah, k. Do you think adding some kind of support for adding an ignore pattern would work for you (e.g. a configuration setting to ignore node_modules/)?

thecotne commented 9 years ago

if i ignore directory from sublime project settings is it ignored by find++ ?

in rare cases i may want to search in node_modules directory (when go to definition not works or when i want to see how some function is used internally in package)

twolfson commented 9 years ago

Yea, if it's ignored by the project, then Find++ should ignore it as well. However, if you need to search node_modules, then I can't help you.

There was a possibility to limit by max depth (e.g. only go down by 5 directories) but in npm@3, they are moving to a flat folder structure which does us no good.

I am going to leave this issue as open (and open to suggestions) but I don't think there is any fix for your use case other than ignoring folders.