color-tabs-regex

Use color-tabs package with regex

averrin

4,473

10

0.2.5

MIT

GitHub

This package consumes the following services:

color-tabs-regex package

Use color-tabs package with regex.

This package use color-tabs services, and String.match or minimatch for tabs coloring.

Just edit ~/.atom/color-tabs-regex.cson (you can open it by "Color Tabs Regex: Edit Rules" command) like

"regex": "#color"
"prefix":
  "regex": "#anothercolor"

When using prefixes, the prefix and the regex are concatenated (e.g. if the prefix is "foo/" and the regex is "bar", it will check for matches with "foo/bar")

Settings

Screenshots

settings tabs

Example

"color-tabs":
  "-regex/":
    ".*": "rgb(75, 99, 0)"
  "/lib" : "rgb(142, 65, 23)"
"opened-files/":
  ".*?\\.coffee": "rgb(134, 90, 16)"

".*\\.py": "rgb(81, 201, 38)"
".json": "rgb(196, 189, 91)"
".cson": "rgb(196, 189, 91)"
".xml": "rgb(196, 189, 91)"