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