Skip to content

Instantly share code, notes, and snippets.

@TeamDman
Created December 28, 2025 05:53
Show Gist options
  • Select an option

  • Save TeamDman/825134d67cbfedcdbb88f7602aebb094 to your computer and use it in GitHub Desktop.

Select an option

Save TeamDman/825134d67cbfedcdbb88f7602aebb094 to your computer and use it in GitHub Desktop.
Search GitHub stars using fuzzy finder
gh api --paginate 'user/starred' | ConvertFrom-Json -Depth 100 | ConvertTo-Json -Depth 100 > my_github_stars.json
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
}
}
$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