XMonad.Prompt.FuzzyMatch: favor modern windowPrompt in docs

Use modern windowPrompt in docs instead of the deprecated
windowPromptGoto.
This commit is contained in:
anthraxx
2018-09-25 21:30:45 +02:00
parent 705494eb4c
commit 6dcc36c904

View File

@@ -48,10 +48,10 @@ import Data.List
-- 11. "FastSPR" is ranked before "FasterSPR" because its match starts at -- 11. "FastSPR" is ranked before "FasterSPR" because its match starts at
-- position 5 while the match in "FasterSPR" starts at position 7. -- position 5 while the match in "FasterSPR" starts at position 7.
-- --
-- To use these functions in an XPrompt, for example, for windowPromptGoto: -- To use these functions in an XPrompt, for example, for windowPrompt:
-- --
-- > import XMonad.Prompt -- > import XMonad.Prompt
-- > import XMonad.Prompt.Window ( windowPromptGoto ) -- > import XMonad.Prompt.Window ( windowPrompt )
-- > import XMonad.Prompt.FuzzyMatch -- > import XMonad.Prompt.FuzzyMatch
-- > -- >
-- > myXPConfig = def { searchPredicate = fuzzyMatch -- > myXPConfig = def { searchPredicate = fuzzyMatch
@@ -60,7 +60,7 @@ import Data.List
-- --
-- then add this to your keys definition: -- then add this to your keys definition:
-- --
-- > , ((modm .|. shiftMask, xK_g), windowPromptGoto myXPConfig) -- > , ((modm .|. shiftMask, xK_g), windowPrompt myXPConfig Goto allWindows)
-- --
-- For detailed instructions on editing the key bindings, see -- For detailed instructions on editing the key bindings, see
-- "Xmonad.Doc.Extending#Editing_key_bindings". -- "Xmonad.Doc.Extending#Editing_key_bindings".