Skip to content

Add completion spec: sort#260

Merged
lucieleblanc merged 1 commit into
mainfrom
sort-completions
Apr 10, 2026
Merged

Add completion spec: sort#260
lucieleblanc merged 1 commit into
mainfrom
sort-completions

Conversation

@lucieleblanc
Copy link
Copy Markdown
Contributor

Summary

Adds a comprehensive completion spec for the sort command (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=WORD with suggestions: general-numeric, human-numeric, month, numeric, random, version

Other 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-terminated

Long-only options

  • --random-source (with file template)
  • --batch-size
  • --compress-program
  • --debug
  • --files0-from (with file template)
  • --parallel
  • --help, --version

Templates

  • File templates for --output, --random-source, --files0-from
  • Folder template for --temporary-directory
  • File/folder template for positional FILE arguments

Generators

No generators needed — sort is a flags-only command with static completions.

Research sources

Conversation: https://staging.warp.dev/conversation/bee73ec5-fb23-4ad4-af24-5512cfbfb263

This PR was generated with Oz.

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>
@lucieleblanc lucieleblanc marked this pull request as ready for review April 10, 2026 15:19
@linear
Copy link
Copy Markdown

linear Bot commented Apr 10, 2026

APP-3961 [Auto] Add sort completions

Add command completions for sort, a fundamental Unix text sorting utility.

Fish shell reference implementation: https://github.com/fish-shell/fish-shell/blob/master/share/completions/sort.fish

@lucieleblanc lucieleblanc merged commit 7d72e22 into main Apr 10, 2026
3 checks passed
@lucieleblanc lucieleblanc deleted the sort-completions branch April 10, 2026 20:02
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.

3 participants