[xmonad] withWorkspace (Actions.DynamicWorkspaces): use fuzzyMatch?

Ramon Diaz-Uriarte rdiaz02 at gmail.com
Tue Dec 28 03:37:43 UTC 2021




On Mon, 27-December-2021, at 08:00:26, Solid <soliditsallgood at mailbox.org> wrote:
> Hi,
>
> On Mon, Dec 27 2021 00:50, Ramon Diaz-Uriarte wrote:
>> I have changed the last line from
>>    mkXPrompt (Wor "") c (mkCompl ts) job'
>> to
>>    mkXPrompt (Wor "") c (mkComplFunFromList' c ts) job'
>>
>> Using this in my xmonad.hs seems to work fine with windows' shift,
>> copy and shiftThenView (last one from Ivan Malison's
>> https://github.com/ivanmalison/dotfiles/blob/0a84ad772e21155cfc00458b66ccb79899699689/dotfiles/config/xmonad/xmonad.hs#L788)
>
> Indeed, I think this would be the right change.  The current `mkCompl`
> is basically just what `mkComplFunFromList'` with the default
> `searchPredicate` (which is `isPrefixOf`) does; it's definitely better
> to let users choose their own predicate.

Thanks for the confirmation!


> If you want, you can submit a pull-request for this[1]!


I just did. (Which makes me feel rather uneasy, given my haskell-ignorance ;-) )


Best,

R.


>
>   Tony
>
> [1]: https://github.com/xmonad/xmonad-contrib/compare


-- 
Ramon Diaz-Uriarte
Department of Biochemistry, Lab B-31
Facultad de Medicina
Universidad Autónoma de Madrid 
Arzobispo Morcillo, 4
28029 Madrid
Spain

Phone: +34-91-497-2412

Email: rdiaz02 at gmail.com
       r.diaz at uam.es

https://ligarto.org/rdiaz


More information about the xmonad mailing list