2
0

ISuggestionGenerator.cs 586 B

12345678910111213141516171819
  1. using System.Collections.Generic;
  2. using Rune = System.Rune;
  3. namespace Terminal.Gui {
  4. public interface ISuggestionGenerator
  5. {
  6. /// <summary>
  7. /// Populates <see cref="Suggestions"/> with all strings in <see cref="AllSuggestions"/> that
  8. /// match with the current cursor position/text in the <see cref="HostControl"/>.
  9. /// </summary>
  10. /// <param name="columnOffset">The column offset. Current (zero - default), left (negative), right (positive).</param>
  11. IEnumerable<Suggestion> GenerateSuggestions (List<Rune> currentLine, int idx);
  12. bool IsWordChar (Rune rune);
  13. }
  14. }