Skip to content

flags: add nushell completions via --generate complete-nushell - #3511

Open
HsukqiLee wants to merge 1 commit into
BurntSushi:masterfrom
TsinbeiLabs:complete-nushell
Open

flags: add nushell completions via --generate complete-nushell#3511
HsukqiLee wants to merge 1 commit into
BurntSushi:masterfrom
TsinbeiLabs:complete-nushell

Conversation

@HsukqiLee

@HsukqiLee HsukqiLee commented Aug 12, 2026

Copy link
Copy Markdown

Adds a complete-nushell option to --generate, following the same pattern as the existing bash/zsh/fish/powershell generators.

Closes #3425

The generated script defines an export extern block for rg where flags with fixed choices get a small nu-complete helper, --type/--type-not complete from rg --type-list, and filename-taking flags use path so nushell completes paths natively. Negated flags (--no-*) are listed as separate entries, same as the fish generator.

Tested by loading the generated script in nushell 0.114.1 and checking that flag names and file types complete with descriptions.

Copilot AI lite review requested due to automatic review settings August 12, 2026 15:02

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.

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.

Add "rg --generate complete-nushell"

2 participants