haskell / haskell/haskeline

Tab clobbers input when completions' common prefix is shorter than input string

Open
#100 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
247
Forks
82
PR merge metrics
No merged PRs in 30d

Description

Example is you are doing fuzzy completion, with `drop` completed to `Text.drop` and `Sequence.drop`. In this case, the common prefix of the completions is the empty string, and the user's input of `drop` is deleted (and no suggestions get printed).

Suggested behavior: Don't replace the user input if the common prefix is shorter than the input.

Another possible idea: somehow give the user more control over what happens to the line when completions are chosen (so they can override this behavior).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.