<div dir="ltr">Hi folks,<div><br></div><div>I really got used to using emacs ido mode, which offers a pretty powerful and intuitive fuzzy matching of completions, so I wanted to port the same to XMonad.Prompt.  This required two patches, included in the attached patch bundles:</div><div><br></div><div>(1)  Completions should be sortable by how well they match the current query string.  This turned out to be a very easy addition of a 'sorter' function to XPConfig, which is parameterized by the current query string.  The default is 'const id', that is, no sorting is done, which is exactly the old behaviour of XMonad.Prompt.</div><div><br></div><div>(2)  A new module XMonad.Prompt.FuzzyMatch that implements the fuzzy matching.  The exact rules for matching and sorting of matches are explained in its documentation.</div><div><br></div><div>As usual, let me know if anything needs to straightened out before these patches can be applied.</div><div><br></div><div>Cheers,</div><div>Norbert</div></div>