Skip to content

[FEAT] Force module to render even if blank/empty #1908

@ehawman

Description

@ehawman

Description

If a module doesn't match, it is ignored/passed. Many of the examples feature modules that are formatted to be part of the structure (in this case, the node of a tree). I would like an option to force it to render that line, even if it says something like "Unknown" or "N/A" or even "".

    {
        "type": "host",
        "key": "󰌢 PC",
        "keyColor": "green",
        "alwaysShow": true,
        "defaultValue": ""
    },

Motivation

I'm working off of examples/10.jsonc, with some stuff simply commented out.

On my local Kubuntu machine, the "host" section works (PC -> Precision 3551)

Via Tailscale SSH, fastfetch isn't able to get the "host" info, and it just doesn't render the line. I would like an option to force it to render that line, even if it says something like "Unknown" or "N/A" or even "". I apologize if this already exists. I've poked around but can't seem to find it.

This could 100% be replicated inside a command module by recreating the given module yourself, but it seems like the kind of function that all modules could benefit from.

Image

Thanks for your consideration!

Additional context

No response

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