You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 3, 2023. It is now read-only.
I find the autocompletion example somewhat not usable. What about
varcompletions=newstring[]{"status","help","state","stx"};// Configures auto-completion, in this example, the result// is always to offer the numbers as completionsle.AutoCompleteEvent+=delegate(stringtext,intpos){stringprefix=text.Substring(0,pos);string[]autocompletions;if(string.IsNullOrEmpty(prefix))autocompletions=completions;elseautocompletions=completions.Where(c =>c.StartsWith(prefix,StringComparison.OrdinalIgnoreCase)).Select(c =>c.Substring(pos)).ToArray();returnnewMono.Terminal.LineEditor.Completion(prefix,autocompletions);};
It just have disadvantage, that it works on the line beginning only.