sts10 / rust-command-line-utilities

A curated list of command-line utilities written in Rust
Creative Commons Zero v1.0 Universal
662 stars 26 forks source link

Add trackers for the last commit and number of stars #3

Closed sts10 closed 1 year ago

sts10 commented 1 year ago

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!

utkarshgupta137 commented 1 year ago

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

sts10 commented 1 year ago

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.

utkarshgupta137 commented 1 year ago

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.

utkarshgupta137 commented 1 year ago

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
sts10 commented 1 year ago

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

utkarshgupta137 commented 1 year ago

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.

atc0005 commented 1 year ago

@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

sts10 commented 1 year ago

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

utkarshgupta137 commented 1 year ago

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.

sts10 commented 1 year ago

Agree.

sts10 commented 1 year ago

Closing this, as I merged #4 .