X.P.Pass: Add note about enabling fuzzy matching

Instead of providing these as default values, as originally planned,
just add a note for users who wish to customise that part of the prompt.
We simply get the user config in mkPassPrompt and so overriding that
with a custom searchPredicate and sorter seems unwise.

Closes: https://github.com/xmonad/xmonad-contrib/issues/746
This commit is contained in:
Tony Zorman
2022-08-23 21:32:34 +02:00
parent ae7f615b60
commit 888a1e4f12

View File

@@ -99,6 +99,18 @@ import XMonad.Util.Run (runProcessWithInput)
--
-- > , ((modMask , xK_p) , passPrompt' "Ask 'pass' for" def)
--
-- Note that, by default, we do not use fuzzy matching in this module.
-- To enable this feature, import the "XMonad.Prompt.FuzzyMatch" module
-- and add the relevant functions to your prompt configuration:
--
-- > myXPConfig :: XPConfig
-- > myXPConfig = def
-- > { searchPredicate = fuzzyMatch
-- > , sorter = fuzzySort
-- > }
-- >
-- > , ((modMask , xK_p), passPrompt myXPConfig)
--
-- For detailed instructions on:
--
-- - editing your key bindings, see "XMonad.Doc.Extending#Editing_key_bindings".