Skip to content

Fix Zsh completion for git pkgs - #380

Merged
andrew merged 1 commit into
mainfrom
fix/zsh-git-completion
Oct 24, 2026
Merged

andrew merged 1 commit into
mainfrom
fix/zsh-git-completion

Conversation

@andrew

@andrew andrew commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

Fix Zsh completion for git pkgs with both Git's and Zsh's Git completion scripts by adapting the command words and cursor position before calling Cobra's completer. Preserve git-pkgs completion and suppress Git's filename fallback when Cobra excludes files.

Document sourcing the script after compinit so Git's completion hook is available on first use. Add interactive Zsh regression coverage for both implementations.

Fixes #378

Copilot AI balanced review requested due to automatic review settings October 19, 2026 08:38

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@andrew
andrew merged commit 1bfb271 into main Oct 24, 2026
7 checks passed
@andrew
andrew deleted the fix/zsh-git-completion branch October 24, 2026 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

zsh: "git pkgs <TAB>" doesn't work when using Git-provide Zsh completions

2 participants