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 235
  • Linux 218
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 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30 Oct 29 Oct 28 Oct 27 Oct 26 Oct 25 Oct 24 Oct 23 Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8
Windows 1 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 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 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 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 1 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.