Skip to content
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

Pkg REPL: sort commands within each super-spec #986

Merged
merged 1 commit into from
Jan 11, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions src/REPLMode.jl
Original file line number Diff line number Diff line change
Expand Up @@ -779,16 +779,16 @@ end

function canonical_names()
names = String[]
# add "package" commands
packagecmds = [spec.canonical_name for spec in unique(values(super_specs["package"]))]
append!(names, sort!(packagecmds))
# add other super commands, e.g. "registry"
for (super, specs) in pairs(super_specs)
super == "package" && continue # skip "package"
for spec in unique(values(specs))
push!(names, join([super, spec.canonical_name], "-"))
end
end
for spec in unique(values(super_specs["package"]))
push!(names, spec.canonical_name)
supercmds = [join([super, spec.canonical_name], "-") for spec in unique(values(specs))]
append!(names, sort!(supercmds))
end
return sort!(names)
return names
end

function complete_installed_packages(options, partial)
Expand Down