Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
May 9, 2024
Merged

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

merged 1 commit into from
May 9, 2024

Conversation

andwu137
Copy link

@andwu137 andwu137 commented May 8, 2024

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

  • I've read CONTRIBUTING.md

  • I've considered how to best test these changes (property, unit,
    manually, ...) and concluded: Manually tested; have observed no issues.

  • I updated the CHANGES.md file

XMonad/Actions/Submap.hs Outdated Show resolved Hide resolved
Copy link
Member

@TheMC47 TheMC47 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution!

XMonad/Actions/Submap.hs Outdated Show resolved Hide resolved
@andwu137 andwu137 requested a review from TheMC47 May 8, 2024 11:33
@slotThe slotThe merged commit 8fb1973 into xmonad:master May 9, 2024
18 checks passed
@slotThe
Copy link
Member

slotThe commented May 9, 2024

Thanks! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants