FuzzyFilePath icon indicating copy to clipboard operation
FuzzyFilePath copied to clipboard

How do you suggest setting / overriding triggers in a sublime.project file?

Open mrbinky3000 opened this issue 8 years ago • 2 comments

I understand that you can override the default settings by creating user settings. Will setting scope triggers in a sublime.project file take precedence over both the default and user settings? If not, can you add this feature?

mrbinky3000 avatar Jan 14 '16 16:01 mrbinky3000

Yes that is the case. Settings are merged in the following order: default -> user -> project-settings. Where project-settings comes last. If you open Edit Project you should see an entry

{
    "folders":
    [
        {
            "path": "."
        }
    ],
    "settings":
    {
        "FuzzyFilePath":
        {
                     // override FFP settings here 
        }
    }
}

Remember, the scopes-Array will currently be replace. Thus you have to copy any triggers you would like to reuse.

sagold avatar Jan 15 '16 08:01 sagold

With added support of multiple folders (87e56120295d11e27a2ac2545645f4dba59a32fd), each folder may be configured independently:

{
    "folders":
    [
        {
            "path": ".",
            "FuzzyFilePath": {
                     // override FFP settings here 
             }
        },
        {
            "path": "./node_modules/my-module",
            "FuzzyFilePath": {
                     // folder specific settings 
             }
        }
    ],
    "settings":
    {
        "FuzzyFilePath": {
                // override FFP settings here 
        }
    }
}

sagold avatar Apr 01 '17 11:04 sagold