-
Notifications
You must be signed in to change notification settings - Fork 349
Improve zsh completion script generation #727
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
Merged
Merged
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
5f5446b
Do not indent zsh cases.
rgoldberg e22f251
Do not prefix zsh cases with an open parenthesis.
rgoldberg beaa419
Prevent zsh parameter word splitting.
rgoldberg 480f772
Improve comment in ZshCompletionsGenerator.swift.
rgoldberg 0eae18f
Fix incorrect zsh shellCommand single quotes:
rgoldberg b4b492a
Remove extraneous zsh newline.
rgoldberg dbbb99e
Improve zsh variable declarations: scoping, typing & readonly.
rgoldberg 69f2d73
Include zsh words before current subcommand in custom completion arg.
rgoldberg 17012b5
Make subcommandHandler in ZshCompletionsGenerator.swift immutable.
rgoldberg a6fd712
Escape zsh single quotes via '\'' instead of via '"'"'.
rgoldberg 7df50be
Escape single quotes in zsh shellCommand String.
rgoldberg ea1047f
Fix zsh custom completions for empty [String] & String elements.
rgoldberg ded075d
Simplify zsh subcommand completion function dispatch.
rgoldberg 28a6b12
Restrict access to symbols in ZshCompletionsGenerator.swift.
rgoldberg 33fbfbc
Add default help to zsh completions iff no existing help subcommand.
rgoldberg 72eb64c
Use interpolated Strings in ZshCompletionsGenerator.swift.
rgoldberg 83fa27c
Create & use zsh __completion function.
rgoldberg 0f8b5ac
Improve zsh escaping.
rgoldberg d278fd1
Set zsh settings to a known state.
rgoldberg 1d6e52c
Inline single-use functions & variables in ZshCompletionsGenerator.sw…
rgoldberg fc8b1d5
Overhaul ZshCompletionsGenerator.swift as [ParsableCommand.Type] exte…
rgoldberg afecd9c
Move functions in ZshCompletionsGenerator.swift.
rgoldberg a2743b1
Move zsh helper functions before command functions to mirror other sh…
rgoldberg ea62664
Prefix zsh helper functions with command name to prevent naming clashes.
rgoldberg 15bbfa0
Separate zsh _arguments flags from specs using :.
rgoldberg f87085c
Rename zsh args variable as arg_specs.
rgoldberg 697e5e8
Simplify zshCompletionString(…).
rgoldberg c6d1375
Allow generating zsh setup scripts for arguments.
rgoldberg e8ca77d
Use zsh array for list completions instead of nested strings.
rgoldberg 8583ab6
Make CompletionShell.format(…) internal instead of public.
rgoldberg ecb43b9
Reword uses of "iff" in completions code.
rgoldberg 19e4df1
Replace zsh END_MARKER pseudo-completion with a space to ease migration.
rgoldberg 6d32ef3
Throw error if attempting to generate a zsh completion script for no …
rgoldberg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.