Skip to content

Conversation

@YousefHadder
Copy link

@YousefHadder YousefHadder commented Nov 27, 2025

Closes: #2565

When running Snacks.picker.gh_issue() or Snacks.picker.gh_pr() outside of a git repository, the user is now prompted to enter a repository in owner/repo format.

Changes

  • Added gh_prompt_repo helper function that prompts for repository input
  • Added abort config option to allow aborting picker creation
  • Updated documentation with new feature and usage examples

Usage

When not in a git repo:

Snacks.picker.gh_issue()  -- prompts for repo
Snacks.picker.gh_pr()     -- prompts for repo

-- Or specify directly:
Snacks.picker.gh_issue({ repo = "folke/snacks.nvim" })

Screenshots

While not in a local repo:

Screenshot 2025-11-27 at 2 43 06 PM Screenshot 2025-11-27 at 2 43 48 PM

@github-actions github-actions bot added docs picker size/l Large PR (<100 lines changed) labels Nov 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs picker size/l Large PR (<100 lines changed)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feature(gh): Enable selecting non-cloned repository to view issues and PRs

1 participant