mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-09-03 12:43:48 -07:00
XMonad.Prompt.FuzzyMatch: favor modern windowPrompt in docs
Use modern windowPrompt in docs instead of the deprecated windowPromptGoto.
This commit is contained in:
@@ -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".
|
||||||
|
Reference in New Issue
Block a user