Sublime Forum

Find in Files - Ignore Subdirectory?

#1

How can I exclude an “assets” folder from my Find in Files (Control+Shift+F) on Windows? I’d like something like:

Where: C:\apps\test\htdocs,*.php, .js,-C:\apps\test\htdocs\assets

I’ve tried various versions of this but seems nothing takes and does not find a bunch of calls inside things I’d rather ignore.

Best support I found here has the same issue noted last at Exclude files & directories from “Find in Files” - Ideas and Feature Requests - Sublime Forum (sublimetext.com) that this doesn’t work in folder, so wondering if this is even an option but seems it should be.

Thanks.

0 Likes

#2

How about Where: C:\apps\test\htdocs,*.php, .js,-*assets* ?
This should ignore file paths with the word assets in them.

0 Likes

#3

I thought that’d work too, but oddly enough that gives me a result in C:\apps\test\htdocs\assets\folder\file.js

0 Likes

#4

Does it help to specify it as -assets/ instead (i.e. with a trailing slash?).

1 Like

#5

Yes, that does help. I’ll go with that in the future. Thanks!

0 Likes