Skip to content

completions results sorted by "kind" ? #11

Description

@laurentpetit

Consider the following command:

=> (pprint (completions "clojure.core"))
nil
("clojure.core"
 "clojure.core.ArrayChunk"
 "clojure.core.ArrayManager"
 "clojure.core.IVecImpl"
 "clojure.core.Vec"
 "clojure.core.VecNode"
 "clojure.core.VecSeq"
 "clojure.core.protocols"
 "clojure.core.protocols.InternalReduce")

first is a namespace, then some classes, then a namespace, then some classes

What do you think about having things sorted first by "kind", then by alphabetical name ?

kinds could be sorted as is: first namespaces then vars then classes then instance members then static members

e.g. having this behaviour instead:

=> (pprint (completions "clojure.core"))
nil
("clojure.core"
 "clojure.core.protocols"
 "clojure.core.ArrayChunk"
 "clojure.core.ArrayManager"
 "clojure.core.IVecImpl"
 "clojure.core.Vec"
 "clojure.core.VecNode"
 "clojure.core.VecSeq"
 "clojure.core.protocols.InternalReduce")

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions