ISuggestionGenerator.cs 511 B

12345678910111213141516171819
  1. using System.Collections.Generic;
  2. using Rune = System.Rune;
  3. namespace Terminal.Gui {
  4. /// <summary>
  5. /// Generates autocomplete <see cref="Suggestion"/> based on a given cursor location within a string
  6. /// </summary>
  7. public interface ISuggestionGenerator {
  8. /// <summary>
  9. /// Generates autocomplete <see cref="Suggestion"/> based on a given <paramref name="context"/>
  10. /// </summary>
  11. IEnumerable<Suggestion> GenerateSuggestions (AutocompleteContext context);
  12. bool IsWordChar (Rune rune);
  13. }
  14. }