Skip to content

Option for single-tab completion when using CompletionType::List? #853

@irh

Description

@irh

The description ofCompletionType::List doesn't seem to match its behaviour:

    /// Complete till longest match.
    /// When more than one match, list all matches
    /// (like in Bash/Readline).

What happens in practice is that when there's more than one match, the longest common prefix (LCP) is completed, and then the list is only shown if tab is pressed a second time.

This is rather confusing if you have the bell disabled, because the first tab press does nothing if the LCP has already been reached, with no indication that a second tab is required.

Would a PR that adds an option to show the list immediately be accepted?

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