sublimehq / sublime_text

Issue tracker for Sublime Text
https://www.sublimetext.com
803 stars 39 forks source link

Load packages from project folder #1813

Open evandrocoan opened 7 years ago

evandrocoan commented 7 years ago

On the forum thread:

  1. Forum$29780 Builder variable for portable mode

Is discussed about creating a build target. Thought/having it in mind, would be better to have build targets specific for projects which require custom build targets.

So my project can be independent of my Sublime Text installation providing a custom build target, if Sublime Text load the custom build target (Package) from the project folder.

Related issues:

  1. https://github.com/SublimeTextIssues/Core/issues/1641 Load *.sublime-build files from my project workspace
  2. #1643 _ How to add multiple build systems in a single file, as on the project file?
FichteFoll commented 7 years ago

Packages are global by default; I highly doubt this will be changing in the future.

evandrocoan commented 7 years ago

So, at least could be build target be loaded from project directory when the build is defined within the sublime-project file?

For example:

{
    "folders":
    [
        {
            "path": "."
        },
    ],
    "build_systems":
    [
        {
            "name": "DrawLots Game",
            "cmd": ["python", "main.py"],

            "target": "my_build_target",
            "build_targert_file": "my_build_target.py"
        },
    ],
}

So Sublime Text will load the build target form the file my_build_target.py?