• Packages
  • Themes
  • Documentation
  • Blog
  • Discuss
Sign in

tab-pair-header-source

Shorten the tab for open header/source files
  • #c++
  • #c
  • #objective-c
  • #objective-c++
  • #header
vanossj
0.3.3 167
0
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

tab-pair-header-source package

Shorten the tab for open header/source files.

A screenshot of your package

Settings

Basic Mode

List all extensions that should be matched if the filename is the same. Check Match Full Path to force matching files to be in the same directory.

Advanced Mode

Select the Advanced Mode Enable box to use custom RegExp patters to determine matched files. List the Regular Expressions in the Advanced Mode Reg Exp box. Files will be considered matches if they have the same information in all capture groups of the same RegExp.

Examples

Grouping by filename (in same folder)
module/
  projects/
    projects.html
    projects.js
    projects.css

becomes [ projects.html | .js | .css ]

RegExp:

([^/\\]+?)(?:\.js|\.html|\.css)$ Matches Filename, not directory (same as basic mode)

^(.+?)(?:\.js|\.html|\.css)$ Matches Filename and directory (same as basic mode with match full path option)

Grouping src and tests
src/
  app/
    plugins/
      feature1.js
      feature1.spec.js

becomes [ feature1.js | .spec.js ]

([^/\\]+?)(?:\.spec\.js|\.js)$ Matches Filename, not directory (same as basic mode)

^(.+?)(?:\.spec\.js|\.js)$ Matches Filename and directory (same as basic mode with match full path option)

Grouping src and tests (enforcing tree structure)
src/
  app/
    plugins/
      feature1.js
test/
  app/
    plugins/
      feature1.spec.js

becomes [ feature1.js | .spec.js ]

RegExp:

^(.+?)(?:\/(?:src|test)\/)(.+?)(?:\.js|\.spec\.js)$

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