Skip to content

[FEAT] Wildcards or command substitution in hideFolders in the disk module #1999

@NorseJedi

Description

@NorseJedi

Description

It would be nice to be able to hide all mounted disks under a specific directory, like /mnt/wsl/docker-desktop-bind-mounts/* on Windows/WSL which tend to have multiple very long paths with random names (see screenshot).

I read that the source-property for the logo module supports command substitution, which would do the trick also in the hideFolder disk module, but it doesn't seem to be supported there.

So it would be very nice to be able to either specify a folder wildcard like /mnt/wsl/* or *docker-desktop* to hide all mountpoints it matches, or alternatively be able to use command substitution so putting in something like $(mount | grep 'bind-mounts' | awk '{ print $3 }' | tr '\n' ':'):/efi:/boot/efi:/boot/firmware would work (or if combining substitution and static entries is overly complicated, allowing the property to only be set to $(mount | grep -E 'bind-mounts|boot|efi' | awk '{ print $3 }' | tr '\n' ':') could do the job).

Motivation

It's a request for an improvement in an existing module, I honestly haven't even thought of recreating this functionality using a different module.

Additional context

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions