Skip to content

Fallback to all types if the selected types aren't presentΒ #1705

Description

@aarondill

Summary πŸ’‘

Ideally, I'd like to use the default -T, but if there are no matches, instead of displaying no image and no Languages, I'd like to fall back to -T programming markup prose data.

Alternative: use onefetch -o json and jq to run onefetch once to detect if there's no LanguagesInfo.languagesWithPercentage, then regenerate onefetch output with the right argument. This requires running onefetch twice and parsing the output πŸ˜”

Motivation πŸ”¦

I'd like to use the default -T programming markup most of the time, but I have some repos that have meaningful files (like docker compose.yaml) but no programming languages.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions