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

Group tabs together based on path rules #1

@ProLoser

Description

@ProLoser

This package is cool in concept and doesn't have to be limited to just C type projects.

If there was some sort of regex expression or conditional rules that I could specify to group tabs together, this would be really cool. Hopefully with the option of having tokens that represent the filename, extension and path.

For instance, it'd be cool if we could automatically group these situations together:

// Grouping by filename (in same folder)
module/
  projects/
    projects.html
    projects.js
    projects.css
// becomes:
// [ projects.html | .js | .css ]
// [ .html | projects.js | .js ]

// Grouping by folder path
component1/
  feature1/
     a.js
     b.js
     c.js
  feature2/
     a.js
     b.js
     c.js
component2/
  feature1/
     a.js
     b.js
     c.js
// becomes:
// [ component1/feature1/a.js | b.js | c.js ]
// [ a.js | component1/feature2/b.js | c.js ]

// Grouping src and tests
src/
  app/
    plugins/
      feature1.js
      feature1.spec.js
// becomes:
// [ feature1.js | .spec.js ]
// [ feature1.spec.js | .js ]

// Grouping src and tests (across trees)
src/
  app/
    plugins/
      feature1.js
test/
  app/
    plugins/
      feature1.spec.js
// becomes:
// [ src/../feature1.js | test/.. ]
// [ src/.. | test/../feature1.spec.js ]

You would use the duplicate information as the primary label for the group, and the discrepencies would be how you specify each tab in the group

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions