add complCaseSensitivity field to XPConfig

This commit is contained in:
ivanbrennan
2020-09-28 20:53:04 -04:00
parent bbcc7e576f
commit b63159fd00

View File

@@ -185,6 +185,8 @@ data XPConfig =
, autoComplete :: Maybe Int -- ^ Just x: if only one completion remains, auto-select it, , autoComplete :: Maybe Int -- ^ Just x: if only one completion remains, auto-select it,
-- and delay by x microseconds -- and delay by x microseconds
, showCompletionOnTab :: Bool -- ^ Only show list of completions when Tab was pressed , showCompletionOnTab :: Bool -- ^ Only show list of completions when Tab was pressed
, complCaseSensitivity :: ComplCaseSensitivity
-- ^ Perform completion in a case-sensitive manner
, searchPredicate :: String -> String -> Bool , searchPredicate :: String -> String -> Bool
-- ^ Given the typed string and a possible -- ^ Given the typed string and a possible
-- completion, is the completion valid? -- completion, is the completion valid?
@@ -323,6 +325,7 @@ instance Default XPConfig where
, defaultText = [] , defaultText = []
, autoComplete = Nothing , autoComplete = Nothing
, showCompletionOnTab = False , showCompletionOnTab = False
, complCaseSensitivity = ComplCaseSensitive True
, searchPredicate = isPrefixOf , searchPredicate = isPrefixOf
, alwaysHighlight = False , alwaysHighlight = False
, defaultPrompter = id , defaultPrompter = id