Skip to content

Allow sorting of completions based on custom types #1047

Closed

Description

@stopthatcow

Currently completion candidates returned by click are sorted in ZSH based on alphanumeric rules. This means that completions ['1', '2', '10'] would be displayed out of natural sort order as ['1', '10', '2']. Update the completion script to bring the sorting into Python where custom types can be sorted more appropriately. Note that the version of bash that ships with OS X is v3.2. The nosort option for complete was introduced in v4.4 This change should support both.

Activity

  1. added a commit that references this issue on Jul 3, 2018
    13b84c5
  2. added a commit that references this issue on Sep 11, 2018
    c610d41
  3. added a commit that references this issue on Sep 12, 2018
    b073abe
  4. added this to the 7.0 milestone on Sep 12, 2018
  5. added 2 commits that reference this issue on Oct 8, 2018
  6. added a commit that references this issue on Oct 29, 2018
  7. locked as resolved and limited conversation to collaborators on Nov 13, 2020
  8. added
    shell completion
    on Aug 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    shell completion

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions