readline icon indicating copy to clipboard operation
readline copied to clipboard

AutoCompletion does not complete the current work

Open IntelOrca opened this issue 6 years ago • 1 comments

Currently auto complete removes your current word and starts a tab complete session from the beginning of the suggestion list. This should instead only rotate through the suggestions that begin with what has currently been typed.

E.g. if you return these suggestions: return new [] { "show", "status", "blame", "checkout", "branch" };

and you type: > git b<TAB>

it should only provide only the following auto completions: > git blame > git branch

IntelOrca avatar Jul 31 '17 11:07 IntelOrca

@IntelOrca The completion points are hardcoded in: https://github.com/tonerdo/readline/blob/6d247be638fb9b1005c0b002cfb0f3c2bebced41/src/ReadLine/KeyHandler.cs#L276, so the completion will start from the space. The next release (coming out tomorrow) is gonna allow the developer specify their own completion points

tonerdo avatar Oct 22 '17 14:10 tonerdo