vscode-find-related icon indicating copy to clipboard operation
vscode-find-related copied to clipboard

Support labels for matched files

Open peabnuts123 opened this issue 6 years ago • 1 comments

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

peabnuts123 avatar Sep 11 '17 23:09 peabnuts123