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