sts10 / rust-command-line-utilities

A curated list of command-line utilities written in Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add trackers for the last commit and number of stars

sts10 opened this issue · comments

Grabbing this from #1.

Would be nice to display some more, dynamically updated information next to each tool, for example last commit and/or number of stars.

I'm not sure how to do this, or if it's possible. Lmk if you know!

You may use shields.io for this. I'm not sure if it will lead to API limits though.
For eg for ripgrep:
GitHub Repo stars
GitHub last commit

Oh, awesome.

I'm trying it over on the counts branch. I'm not exactly sure how to arrange the title, description, and these two new rectangles.

Nice. Looks like API limits won't be an issue.
If you change the list to a table, then you could remove the label from the badge by adding &label= at the end.

Here is how it could look like in a table:

unix rust stars last commit
cat bat GitHub Repo stars GitHub last commit
cd z GitHub Repo stars GitHub last commit
cp xcp GitHub Repo stars GitHub last commit
diff delta GitHub Repo stars GitHub last commit
diff difftastic GitHub Repo stars GitHub last commit
du dust GitHub Repo stars GitHub last commit
find fd GitHub Repo stars GitHub last commit
grep rg GitHub Repo stars GitHub last commit
ls exa GitHub Repo stars GitHub last commit
ls lsd GitHub Repo stars GitHub last commit
rm rip GitHub Repo stars GitHub last commit
sed sd GitHub Repo stars GitHub last commit

Nice! How did you make that? Just manually with your space bar?

Didn't get you.
Do you mean how I did the grunt work of formatting the table? If so, vim block select made it not too difficult. But I think multi-cursor would make it even easier.
A simple python script should make the process quite easy.

@sts10: Nice! How did you make that? Just manually with your space bar?

FWIW, if you wanted to manually setup the first iteration (before scripting) this vscode extension is great for working with Markdown tables:

Name: Markdown All in One
Id: yzhang.markdown-all-in-one
Description: All you need to write Markdown (keyboard shortcuts, table of contents, auto preview and more)
Version: 3.5.0
Publisher: Yu Zhang
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=yzhang.markdown-all-in-one

I'm a Neovim user, so I was going to try something like vim-table-mode.

I think it would be better to include the last release instead of the last commit:

unix rust stars last release
cat bat GitHub Repo stars GitHub last release
cd z GitHub Repo stars GitHub last release
cp xcp GitHub Repo stars GitHub last release
diff delta GitHub Repo stars GitHub last release
diff difftastic GitHub Repo stars GitHub last release
du dust GitHub Repo stars GitHub last release
find fd GitHub Repo stars GitHub last release
grep rg GitHub Repo stars GitHub last release
ls exa GitHub Repo stars GitHub last release
ls lsd GitHub Repo stars GitHub last release
rm rip GitHub Repo stars GitHub last release
sed sd GitHub Repo stars GitHub last release

ripgrep & exa seem to be the most affected. Both have had very little development in the last 2 years, but both still have recent commits.

Agree.

Closing this, as I merged #4 .