ISearchMatcher.cs 489 B

12345678910111213
  1. using System.IO.Abstractions;
  2. namespace Terminal.Gui;
  3. /// <summary>Defines whether a given file/directory matches a set of search terms.</summary>
  4. public interface ISearchMatcher
  5. {
  6. /// <summary>Called once for each new search. Defines the string the user has provided as search terms.</summary>
  7. void Initialize (string terms);
  8. /// <summary>Return true if <paramref name="f"/> is a match to the last provided search terms</summary>
  9. bool IsMatch (IFileSystemInfo f);
  10. }