Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add zsh completion support #262

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Eazash
Copy link

@Eazash Eazash commented Feb 27, 2025

Description

This PR introduces support for zsh completions. It adds a new --print-completions flag that can be used to print completion scripts for either bash or zsh. It does retain the current behavior for the --completion flag in that it still prints bash completions if no argument is passed.

It also slightly tweaks how words are passes to nr --completion so that it's passed as a space separated sequence and the first argument/word is properly picked up

Linked Issues

#261

Additional context

There is room for future improvement to include script descriptions and customize styling in zsh completions, as well as include completions for other commands like nun, nu or na

@Eazash Eazash changed the title fix: correct array expansion in completion script feat: add zsh completion support Feb 27, 2025
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.

1 participant