module SearchFilter (matchSearch) where

import Bucket.Types

matchSearch :: String -> BucketItem -> Bool
matchSearch searchString item =
    -- TODO: implement smart search
    True

module SearchFilter (matchSearch) where

import Bucket.Types
import Data.Text

matchSearch :: String -> BucketItem -> Bool
matchSearch searchString item =
    toLower (pack searchString) `isInfixOf` toLower (pack (itemFileName item))

Implement simple file name search.
Implement simple file name search.
