kdcro101 / vscode-favorites

Add files and directories to workspace favorites. You can create groups (and subgroups) of favorite items with files and folders. Time saver for complex projects.
MIT License
49 stars 13 forks source link

Suggestion: Possibility to include group within group #2

Closed Emerson-Coelho closed 6 years ago

Emerson-Coelho commented 6 years ago

It would be interesting to include groups of groups. Facilitate the creation of group repositories.

Example config:

{
    "favorites.resources": [],
    "favorites.sortOrder": "DESC",
    "favorites.sortDirection": "ASC",
    "favorites.groupsFirst": true,
    "favorites.root": [
        {
            "type": "Group",
            "name": "ExampleFolder1",
            "contents": [
                {
                    "type": "Group",
                    "name" : "ExampleFolder2",
                    "contents" : [
                          "resources\\assets\\js\\module2.js",
                          "resources\\assets\\css\\module2.css"
                    ]
                },
                "resources\\assets\\js\\module1.js",
                "resources\\assets\\css\\module1.css"
            ]
        }
    ]
}

Perfect example in Netbeans:

capture1

kdcro101 commented 6 years ago

@Emerson-Coelho

Sorry for late reply.

I've added support to add subgroups. Please, check version 1.2.0. Right-click on group and select "Create subgroup" to create subgroup. Subgroups can have subgroups too.

If you have any problems, just open issue.

Enjoy!

Emerson-Coelho commented 6 years ago

Thank you! It worked exactly as expected.

To be perfect, if it were not asking too much of you, it would be possible to create an alias for the file or folder. There's a possibility? I opened a new problem for this question.