Created
December 28, 2025 05:53
-
-
Save TeamDman/825134d67cbfedcdbb88f7602aebb094 to your computer and use it in GitHub Desktop.
Search GitHub stars using fuzzy finder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gh api --paginate 'user/starred' | ConvertFrom-Json -Depth 100 | ConvertTo-Json -Depth 100 > my_github_stars.json | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function ss{ # search stars | |
| $cwd = Get-Location | |
| Push-Location "C:\Users\TeamD\OneDrive\Documents\Ideas\GitHubStars" | |
| try { | |
| $update = @("Skip Update.","Update?") | fzf | |
| Write-Host "You chose: $update" | |
| if ([string]::IsNullOrWhiteSpace($update)) { | |
| return "You chose nothing I guess, exiting." | |
| } | |
| if ($update -eq "Update?") { | |
| Write-Host "Performing update" | |
| Write-Host "Fetching new stars, this took 45 seconds last time." | |
| . .\get-stars.ps1 | |
| } | |
| Write-Host "Opening picker" | |
| .\search.ps1 | |
| } finally { | |
| Pop-Location | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $stars_json = Get-Content my_github_stars.json -Raw | |
| # requires https://github.com/AAFC-Cloud/Cloud-Terrastodon | |
| $chosen = $stars_json | cloud_terrastodon pick --many --engine liquid --query "{{full_name}} — {% if description %}{{description}}{% else %}no description{% endif %}" | ConvertFrom-Json | |
| $chosen.html_url | ForEach-Object { | |
| Write-Host $_ | |
| Start-Process $_ | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment