From 888a1e4f12710b8e118ae261a1535c48f7579785 Mon Sep 17 00:00:00 2001 From: Tony Zorman Date: Tue, 23 Aug 2022 21:32:34 +0200 Subject: [PATCH] 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 --- XMonad/Prompt/Pass.hs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/XMonad/Prompt/Pass.hs b/XMonad/Prompt/Pass.hs index 68e85d0c..e6dab2ae 100644 --- a/XMonad/Prompt/Pass.hs +++ b/XMonad/Prompt/Pass.hs @@ -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".