Skip to content

Ignore system filters and splitting globs #64

@dimateos

Description

@dimateos

Describe the Problem

Hello! thanks for the great extension!

I want to use this extension more but I always kind of ignore it because the list of filters gets too cluttered.
What do I mean? Basically the same as #44 but let me explain it:

You have the GLOBAL setting "files.exclude" (default by vscode or custom), for example:

"files.exclude": {
    "**/{.DS_Store,Thumbs.db}": true,
    "**/{.hg,.svn}": true,
    "**/.git": true,
    "**/{__pycache__,.pytest_cache}": true,
},

Now if you use any of the extension features, the LOCAL "files.exclude" will be populated with ALL those GLOBAL values + whatever you need for filtering. As you can see here, even marked as "System":

Image

Welp, now I have a long list of filters I will UNLIKELY touch ever (that is why I put them in the GLOBAL settings)... on top of the one I MAY toggle on/off! Plus all the array ends up in the LOCAL settings.json

My second request is also related to reducing noise. I only had 4 elements in my exclude list, but here the extension tries to be "too-smart" and splits my hand-made blob groups (not all tho bug?). I had my reasons to group those and I will never toggle them individially, so I much prefer to reduce the list elements and get some vertical space back!

Describe the Solution

My feature requests are simple. Note that IMO, these suggestions should be the default behavior, but I guess I would introduce settings so users can still pick the previous one if they see the need etc:

  1. SETTING: completely ignore the "System" GLOBAL file.exclude setting, just as it never existed: render only the content of the LOCAL file.exclude and simply modify that without adding values from the GLOBAL settings.

IMPORTANT note here: IDK before or if ever, but since many versions LOCAL files.exclude does NOT replace the GLOBAL setting, both settings are MERGED! So the only thing the user would lose is the ability to see/toggle the GLOBAL ones using the visual panel. But IMO I would prefer a simpler more usable list and edit those manually in the GLOBAL settings JSON.

FEATURE: Maybe the cog button could search for "files.exclude" instead of "explorerExclude." as a shortcut to edit those settings. IMO "explorerExclude." settings seem more like set and forget kind-off so I dont see the need for a shortcut whereas an alternative quick way to edit "files.exclude" seems neat.

  1. SETTING: completely ignore glob groups and simply treat them as a SINGLE regular path. These glob groups are a tool we have for grouping related stuff so why the split? is it how the vscode API returns them?

EXAMPLE: I would even manually edit the LOCAL files.exclude and group some paths to help reduce the list size and make it even more usable.

BUG: It does not work very well as of now too (see the pycache glob example).

Alternatives

No response

Additional Context

As final context, I have been using this extension for years but basically only as a neat way of visualizing what is currently ignored in the explorer. So never really interactuated with it :(

But I see it as a great extension with even greated potential!

Would love to be able to toggle glob groups of related LOCAL folders,
This would be super useful e.g. limit the workspace search in very user-friendly way (inherits files.exlude).

Thanks, regards!

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions