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
Dec 21 Dec 20 Dec 19 Dec 18 Dec 17 Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8 Dec 7 Dec 6 Dec 5 Dec 4 Dec 3 Dec 2 Dec 1 Nov 30 Nov 29 Nov 28 Nov 27 Nov 26 Nov 25 Nov 24 Nov 23 Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7
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!).