Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,16 @@ _Note: History information is persisted for an entire application session. Also,
```csharp
class AutoCompletionHandler : IAutoCompleteHandler
{
// characters to start completion from
/// <summary>
/// Characters to start completion from.
/// </summary>
public char[] Separators { get; set; } = new char[] { ' ', '.', '/' };

// text - The current text entered in the console
// index - The index of the terminal cursor within {text}
/// <summary>
/// Used to resolve possible completions.
/// </summary>
/// <param name="text">The current text entered in the console.</param>
/// <param name="index">The index of the terminal cursor within <paramref name="text"/>.</param>
public string[] GetSuggestions(string text, int index)
{
if (text.StartsWith("git "))
Expand Down