GithubHelp home page GithubHelp logo

rath / angular-folding Goto Github PK

View Code? Open in Web Editor NEW
20.0 20.0 15.0 91 KB

IntelliJ Plugin that groups Angular component files

Home Page: https://plugins.jetbrains.com/plugin/10090-angular-component-folding

Java 86.39% Kotlin 13.61%

angular-folding's People

Contributors

aaa123eee avatar daschtour avatar jounqin avatar kalinon avatar madebyjeffrey avatar popepaf avatar rath avatar rusranx avatar sheigutn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

angular-folding's Issues

Collapse state not being maintained

First, I want to thank you for this plugin! There's just a few issues that could be fixed to make it perfect.

  1. The collapse/expanded state is constantly being forgotten. It seems that every file change/save causes the folding to collapse, which almost makes it too frustrating to use. I find that just saving or sometimes tabbing between my open files seems to cause all of them to collapse.
  2. It would be extra nice if the VCS status coloring (not added, changed, etc) was propagated up to the fold node. So that you have some sort of visibility that you have files that need to be added to GIT or HG. Although, this feature is needed less if the folded node stayed expanded so I can see the children while working.

Thanks!

Make it possible to configure open action

Thanks for this great plugin! I would like to make a suggestion - it would be nice if when you double click on a folded component it automatically opens the .ts file which is most likely where you would like to go. Maybe also make it configurable for people who might want it configured differently?

Add .spec.ts to file pattern

From what I've seen in code and how the plugin currently works spec files are not grouped.
It would be great if they were also folded together with html, style and so on.

Does not seem to work in scoped views

Great idea! When I install the plugin, it works fine in the "Project" view.
However, it does not work in all other views I tried.
Especially when using a self defined scope, it's not working (which is really sad, because using those scopes is my only chance to survive navigation in huge projects).

Actions apply only to the .ts file

When the folded component is selected, any action such as "add to git" or "refactor name" is applied only on the .ts file.

I'ts not really a problem but it'll be nice if the folded components could be considered as a folder.

keep it going, this is a really nice plug-in

Folder does not expand

In the project view a subfolder does not expand but says "loading..." MacOs Finder shows me that there are approx. 65 files and subsubfolders. Disabling the Plugin shows the correct behaviour

IntelliJ IDEA 2023.2 (Ultimate Edition)
Build #IU-232.8660.185, built on July 26, 2023
Runtime version: 17.0.7+7-b1000.6 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 13.4.1

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

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.

Support SVG extensions

It turns out that angular supports templates with the 'svg' extension.

Here is a PR to add this support: #22

Can make some changed if needed.

Plugin does not apply any folding in WebStorm 2018.1.1

As seen in the screenshot, components are still displayed separately in the project view, not grouped.

screenshot from 2018-04-13 14-20-54

Plugin version

1.3.0

System info

WebStorm 2018.1.1
Build #WS-181.4445.68, built on April 9, 2018
JRE: 1.8.0_152-release-1136-b27 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 4.15.15-63.current

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.