Closed skast96 closed 2 years ago
Fixed it on my own just look at my fork if you need that behavior too.
The above mentioned fork seems to have been deleted. For anyone else who had this problem, my solution was to change the following around line 584 of LocalEchoController.js:
} else if (candidates.length <= this.maxAutocompleteEntries) {
// search for a shared fragement
const sameFragment = getSharedFragment(inputFragment, candidates);
// if there's a shared fragement between the candidates
// print complete the shared fragment
if (sameFragment) {
const lastToken = getLastToken(inputFragment);
this.handleCursorInsert(
sameFragment.substr(lastToken.length)
);
}
to
} else if (candidates.length <= this.maxAutocompleteEntries) {
const lastInputToken = getLastToken(inputFragment);
// search for a shared fragement
const sameFragment = getSharedFragment(lastInputToken, candidates);
// if there's a shared fragement between the candidates
// print complete the shared fragment
if (sameFragment) {
this.handleCursorInsert(
sameFragment.substr(lastInputToken.length)
);
}
Hello
as the title says the autocomplete is pasting the whole command into the input instead of completing it. Example:
My commands:
My Autocomplete:
The text in the input:
Results in:
Is there a nice and simple solution for that?