Skip to content

Support repos "without source code" #1578

Open
@Kajiih

Description

@Kajiih

Summary 💡

It would be great to have some onefetch work on repositories currently considered as "without source code", but with plain text or markdown.

Motivation 🔦

Plain text repos are a real thing and there are even very popular tools specifically to do this (hello https://github.com/Vinzent03/obsidian-git), so I believe these repos deserve the same beautiful information display as repos with real code.

Markdown is supposed to be supported, but it looks like it's not considered by onefetch at all. I believe it makes sense that languages like markdown don't count in fields like lines of code and languages but all other fields are still relevant (and Tokei already gives data for markdown and plain text, and even languages inside code blocks).

In a case that is currently detected as "without source code", irrelevant fields should be removed or their meaning could be adapted (logo corresponding to the most used format, same for languages, lines of code become lines of text, etc).

Currently, it's possible to add one (almost empty) python file to allow info to be displayed, but it's a silly solution in my opinion.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions