mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-06 15:01:53 -07:00
add complCaseSensitivity field to XPConfig
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user