Add completion spec: sort#260
Merged
Merged
Conversation
Adds a comprehensive completion spec for the sort command (GNU coreutils), covering all flags and options including: Ordering options: -b, -d, -f, -g, -i, -M, -h, -n, -R, -r, -V, --sort=WORD Other options: -c, -C, -k, -m, -o, -s, -S, -t, -T, -u, -z Long-only options: --random-source, --batch-size, --compress-program, --debug, --files0-from, --parallel, --help, --version Includes file/folder templates for --output, --temporary-directory, --random-source, and --files0-from options. Includes suggestions for --sort=WORD values (general-numeric, human-numeric, month, numeric, random, version). No generators needed as sort is a flags-only command with static completions. Co-Authored-By: Oz <oz-agent@warp.dev>
APP-3961 [Auto] Add sort completions
Add command completions for Fish shell reference implementation: https://github.com/fish-shell/fish-shell/blob/master/share/completions/sort.fish |
kevinchevalier
approved these changes
Apr 10, 2026
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
Adds a comprehensive completion spec for the
sortcommand (GNU coreutils text sorting utility).What's included
Ordering options (with short and long forms)
-b/--ignore-leading-blanks-d/--dictionary-order-f/--ignore-case-g/--general-numeric-sort-i/--ignore-nonprinting-M/--month-sort-h/--human-numeric-sort-n/--numeric-sort-R/--random-sort-r/--reverse-V/--version-sort--sort=WORDwith suggestions:general-numeric,human-numeric,month,numeric,random,versionOther options
-c/--check,-C(quiet check)-k/--key(KEYDEF with format documentation)-m/--merge-o/--output(with file template)-s/--stable-S/--buffer-size-t/--field-separator-T/--temporary-directory(with folder template)-u/--unique-z/--zero-terminatedLong-only options
--random-source(with file template)--batch-size--compress-program--debug--files0-from(with file template)--parallel--help,--versionTemplates
--output,--random-source,--files0-from--temporary-directoryGenerators
No generators needed —
sortis a flags-only command with static completions.Research sources
sort --help(GNU coreutils)Conversation: https://staging.warp.dev/conversation/bee73ec5-fb23-4ad4-af24-5512cfbfb263
This PR was generated with Oz.