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

Conditional Color​Schemes

Define separate color schemes for specific paths, extensions, & filenames.

Details

Installs

  • Total 2K
  • Win 1K
  • Mac 227
  • Linux 211
Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5 Mar 4 Mar 3 Mar 2 Mar 1 Feb 29 Feb 28 Feb 27 Feb 26 Feb 25 Feb 24 Feb 23 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
Windows 0 2 0 0 0 0 1 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 1 0 0 1 2 0 1 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 1 0 0 0 0 0 1 0 0 0 0 0 0 1
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 0

Readme

Source
raw.​githubusercontent.​com

Conditional ColorSchemes

Define color schemes for specific paths, extensions, & filenames.

FEATURES

Color Schemes For Specific Directories

You can define RegEx patterns to match:

  • parent directories
  • sequences of subdirectories
  • sequences of subdirectories within a particular parent directory

Additionally, there is an include_FileName_In_FilePath setting which allows you to match:

  • specific files with an exact path
  • specific files with a particular extension within one of the previously mentioned directory patterns

Color Schemes For Specific Files

You can define RegEx patterns to match:

  • file extensions
  • complete file names
  • partial file names

USAGE

Copy the contents of the example settings:
Preferences > Package Settings > Conditional ColorSchemes > Settings ─ Example
to your user settings file:
Preferences > Package Settings > Conditional ColorSchemes > Settings ─ User
and edit them as necessary.

User settings can also be accessed via the command palette with the Conditional ColorSchemes: Edit Settings command.

Note:
When adding new conditions, files that were already open must be reloaded in order for the color schemes to be affected.

KNOWN BUGS

When SublimeText is first opened, files are loaded before plugins.

Because of this, only files which are opened after SublimeText is fully loaded will be affected by this plugin.