angular-folding icon indicating copy to clipboard operation
angular-folding copied to clipboard

[Feature Request] Hide folder from tree view if it only contains one component

Open AlexanderMelde opened this issue 1 year ago • 0 comments

With default settings, ng generate component already groups components into folders. With this plugin in use, in each filesystem folder, there now is a virtual folder for the component.

image

I suggest adding on option to hide the filesystem folder in the tree view to save one line of text and reduce redundancy.

A structure like this

src
   app
      home
         home.component
            .css
            .html
            .spec.ts
            .ts
      about
         about.component
            .css
            .html
            .spec.ts
            .ts
     app.component
        .css
        .html
        .spec.ts
        .ts

should appear like this after the change:

src
   app
     home.component
        .css
        .html
        .spec.ts
        .ts
     about.component
        .css
        .html
        .spec.ts
        .ts
     app.component
        .css
        .html
        .spec.ts
        .ts

I do realize this can create confusion of whether a component is placed in a subfolder or not, but i believe a small indicator in the icon could be enough to address this, and most generated components are in subfolders today anyways.

AlexanderMelde avatar Apr 02 '23 12:04 AlexanderMelde