ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Project​Specific

Configure project specific commands, keymaps, etc. in your project-file.

Details

Installs

  • Total 526
  • Win 260
  • Mac 162
  • Linux 104
Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3 Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
bitbucket.​org

Project-Specific

This extension enables you to add project specific configuration to Sublime Text 2.

Example:

{
    "folders": ...
    "settings": {
        "project-specific": {
            "sublime-keymap": [
                {"keys": [ "ctrl+B"],
                 "command": "exec",
                 "args": ["echo", "my build"]
                }
            ],
            "sublime-commands": [
                {"caption": "My Command",
                 "command": "open_file",
                 "args": {"file": "my file.x"} }
            ]
            "sublime-macro": {
                "macro1": [ ... ],
                "macro2": [ ... ]
            }
        }
    }

}

Each time you switch to a project, the configuration files in User/Project-Specific will be updated. For example above, there would be created:

  • User/Project-Specific/Default.sublime-keymap
  • User/Project-Specific/<project-name>.sublime-commands
  • User/Project-Specific/<project-name> macro1.sublime-macro
  • User/Project-Specific/<project-name> macro2.sublime-macro

Basically there will be created a file <project-name>.<key> for each key of project-specific dictionary, if value is a list. If value is a dictionary with subkey, then files <project-name> <subkey>.<key> will be created.

sublime-keymap configuration is an exception, because file-name must be Default. If you use here a subdictionary, your key can contain (case-insensitive) linux, osx, windows for os-specific keymaps, any other key will be mapped to Default (if there are multiple keys mapped to Default only the last processed is taken, values are not merged!).