mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-07-31 04:01:51 -07:00
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:
@@ -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".
|
||||
|
Reference in New Issue
Block a user