Add github_pr item with OSC 8 clickable link and nerd font icon#639
Open
JefStat wants to merge 1 commit into
Open
Add github_pr item with OSC 8 clickable link and nerd font icon#639JefStat wants to merge 1 commit into
JefStat wants to merge 1 commit into
Conversation
Displays the GitHub PR number for the current branch using `gh pr view`. Results are cached for 5 minutes to avoid network calls on every prompt. Includes theme colors for all 6 config variants and littlecheck tests. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
github_prprompt item that displays the GitHub PR number for the current branch#1234links to the PR page)U+F408(git-pull-request) viatide_github_pr_iconuniversal variablenumberandurlin a singlegh pr viewcall with jq:"\(.number)|\(.url)"readto reliably capture both fieldsstatfor TTL (Darwin/Linux)number|url(e.g.,1234|https://github.com/owner/repo/pull/1234)string split -m 1)icons.fishghnot installed, not in git repo, no PR, with PR, cached result, cached negative resultTest plan
fish --no-executepasses on all new/modified filesfish_indent --checkpasses on all new/modified files_tide_item_github_pr.test.fishod(ESC]8;;URL ESC\ #NUM ESC]8;; ESC)ghis not installed or no PR exists🤖 Generated with Claude Code