Skip to content

Name autocomplete should pick shortest match first #283

@shazow

Description

@shazow

Right now, with pavelz-cloud-het and pavel hanging out, pav<tab> will complete pavelz-cloud-het sometimes. It should always pick pavel first.

Should be a fairly small algorithm change in Host.completeName, probably just need to sort the returned candidates by length and pick the shortest. (Right now it's random because we're iterating a map which is randomized order.)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions