eamodio / vscode-find-related

Finds files related to the current file based on user-defined configuration rules in VS Code
MIT License
30 stars 12 forks source link

Support labels for matched files #3

Open peabnuts123 opened 7 years ago

peabnuts123 commented 7 years ago

It would be really nice if you could assign a name to locators that described what they are, so that when you view related files you could see the path as well as what they "are" e.g.

{
  "pattern": "(app)/routes/(.*)\\.js$",
  "locators": [
    { "label": "Template", "glob": "$1/templates/$2.hbs"},
    { "label": "Controller", "glob": "$1/controllers/$2.js"}
  ]
}

Which might display something like:

Files related to account.js • app/routes:
Template app/templates/account.hbs
Controller app/controllers/account.js
eamodio commented 7 years ago

Very interesting idea! I'll take a look into adding something like this.