• Packages
  • Themes
  • Documentation
  • Blog
  • Discussions
Sign in

color-tabs-regex

Use color-tabs package with regex
averrin
0.2.5 4,437
10
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

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

  • On settings page you can toggle "Break on first match" behavior.
  • Select regex engine: String.match or minimatch (default)

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)"

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by