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

Augment "index_exclude_patterns" to understand directories #1805

Closed
Zooce opened this issue Jul 7, 2017 · 1 comment
Closed

Augment "index_exclude_patterns" to understand directories #1805

Zooce opened this issue Jul 7, 2017 · 1 comment

Comments

@Zooce
Copy link

Zooce commented Jul 7, 2017

Currently, the "index_exclude_patterns" setting does not understand directories; only files. Teaching "index_exclude_patterns" to understand directories would be extremely useful. Let me explain why.

I use Sublime Text 3 at my job to work on a massive project. Sublime Text 3 can handle this project with no problem. However, our project has many directories that contain files that don't need to be indexed. An example of one of these directories is .git/. For me, although it is unnecessary to have the .git/ directory indexed, I still need to see it in the sidebar since I make changes to the .git/config file quite often. Thus using the "folder_exclude_patterns" doesn't work here (I'm under the impression that folders defined here are also excluded from indexing - please correct me if I'm wrong).

Interestingly, I found a very annoying issue because the .git/ directory is being indexed, where a Git plugin for Sublime Text 3 calls git status every few seconds to watch for changes to git's working set. This call creates a new file called index.lock in the .git/ directory and then deletes it when it's done. When this file gets created it ends up triggering the indexer in Sublime Text 3. While the indexer is starting up, the index.lock file is deleted and Sublime Text's UI freezes up for a second or two.

Teaching "index_exclude_patterns" to understand directories would eliminate that annoying issue, and save a good amount of time wasted on unnecessary indexing.

Example Usage:

{
    "index_exclude_patterns":
    [
        "*.log",
        "*/.git/*"
    ]
}

The above example would exclude all files with the .log extension from being indexed, as well as all files within any directory named .git/.

@FichteFoll FichteFoll assigned FichteFoll and unassigned FichteFoll Jul 7, 2017
@FichteFoll FichteFoll changed the title [Feature Request] Augment "index_exclude_patterns" to understand directories Augment "index_exclude_patterns" to understand directories Jul 7, 2017
@wbond wbond added this to the Build 3158 milestone Mar 21, 2018
@wbond wbond added the R: fixed label Mar 29, 2018
@wbond
Copy link
Member

wbond commented Mar 29, 2018

This was fixed in build 3158.

@wbond wbond closed this as completed Mar 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants