Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting "index_exclude_patterns" not working in project settings. #1277

Closed
jaggerwang opened this issue Jul 14, 2016 · 5 comments

Comments

5 participants
@jaggerwang
Copy link

commented Jul 14, 2016

Summary

Want to exclude some folders in project from indexing, after add this folders in "index_exclude_patterns", it still can be searched by Cmd+Shift+R. I've also tried to clear the "Index" directory, it's the same.

Expected behavior

Can not be searched by Cmd+Shift+R.

Actual behavior

Can be searched.

Steps to reproduce

  1. Add exclude folders in sublime project file.
{
    "folders":
    [
        {
            "path": "."
        },
        {
            "path": "~/projects/f8app"
        }
    ],
    "settings": {
        "index_exclude_patterns": ["node_modules/*", "~/projects/f8app/node_modules/*"]
    }
}

image

  1. Press Cmd+Shift+R, and enter in "react"
    image
  2. Select "ReactApplication", and enter, the file under "node_modules" still be indexed.
    image

Environment

image

@jaggerwang

This comment has been minimized.

Copy link
Author

commented Jul 15, 2016

Also tried move setting to under "folders", still not working!

{
    "folders":
    [
        {
            "path": ".",
            "index_exclude_patterns": ["node_modules"]
        },
        {
            "path": "~/projects/f8app"
        }
    ],
    "settings": {
    }
}
{
    "folders":
    [
        {
            "path": ".",
            "index_exclude_patterns": ["node_modules/*"]
        },
        {
            "path": "~/projects/f8app"
        }
    ],
    "settings": {
    }
}
@jaggerwang

This comment has been minimized.

Copy link
Author

commented Jul 15, 2016

Find a compromise method, add ".min.js" and "dist/" to "binary_file_patterns" in user settings, then file path match this patterns will not be used by goto anything, and it still can show in sidebar and be searched. Much better!
Notice, only can be set in user settings file, not working in project file.

@Overload119

This comment has been minimized.

Copy link

commented Apr 30, 2017

I still run into this -- is this ever going to be fixed?

@J3Rik0

This comment has been minimized.

Copy link

commented Jan 14, 2018

Old thread I know, you can do:
"binary_file_patterns": ["node_modules/*"], of course, you'll want to add it in with the default ones from the default settings.

Hope this helps anyone else who bumps into this thread.

@jaggerwang jaggerwang closed this Jan 15, 2018

@FichteFoll FichteFoll reopened this Jan 15, 2018

@wbond wbond added this to the Build 3158 milestone Mar 21, 2018

@wbond

This comment has been minimized.

Copy link
Member

commented Mar 29, 2018

This was fixed and documented in build 3158.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.