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

[Feature Request] Appending settings in project #1935

Open
WZ-Tong opened this issue Apr 24, 2024 · 1 comment
Open

[Feature Request] Appending settings in project #1935

WZ-Tong opened this issue Apr 24, 2024 · 1 comment

Comments

@WZ-Tong
Copy link
Contributor

WZ-Tong commented Apr 24, 2024

When I need some common parameters ("args" field) and some "project specific" parameters, I have to copy all the common ones into my project settings.

If there is any way to append/override some default settings, this would be helpful.

Example:

SublimeLinter:

{
    "linters": {
        "mylinter": {
            "args": ["-c", "common_args", "-o", "override_args"],
    	},    
    },
}

Project:

{
    "settings": {
        "SublimeLinter.linters.mylinter.args.override": [
        	"-a", "additional_args"
        	"-o", "project_override_args",
        ],
    },
}
@kaste
Copy link
Contributor

kaste commented Apr 24, 2024

It would be "SublimeLinter.linters.mylinter.args.append" from my understanding. From the implementation side, the key of the setting then is args.append, and you could also choose "SublimeLinter.linters.mylinter.additional_args" or extend_args, you get it, everything after the prefix is the key name of just another setting. That would be my perspective on it right now.

The implementation would be a trivial one-liner probably, plus a lot more for the unit tests. Bike-shedding the name is probably difficult.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants