xmonad / xmonad-contrib

Contributed modules for xmonad
https://xmonad.org
BSD 3-Clause "New" or "Revised" License
579 stars 271 forks source link

Add a method to re-sort keys for visualSubmap #888

Closed andwu137 closed 2 months ago

andwu137 commented 2 months ago

Description

I did not see any way to display the submap bindings in a different order. I created a general function that takes a sorter for the descriptions (visualSubmapSorted).

The change from zipWith to map . zip showed no noticeable performance effects.

Checklist

slotThe commented 2 months ago

Thanks! :tada: