Skip to content
This repository has been archived by the owner on Apr 7, 2023. It is now read-only.

vanossj/tab-pair-header-source

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Regular Expression Problems

If the text entered is not valid RegExp, the input box will have the error highlight. At least one capture group is expected; if the text is valid regex but is does not contain any capture groups the input box will have the warning highlight. Highlight colors depend on your theme.

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published