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

Implement key ordering for info box #952

Merged
merged 2 commits into from
Nov 3, 2021
Merged

Conversation

Triton171
Copy link
Contributor

This sorts the keys in the infobox, when multiple keys are associated to a command (or command group).
What previously looked like this:
current-master
now looks like this:
sorting

I also tried adding a padding to make everything align but I'm not sure if that's an improvement. If that is desired, I can add it to this PR:
sorting-and-padding

helix-term/src/keymap.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@pickfire pickfire left a comment

Choose a reason for hiding this comment

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

Nice! Looks good to me.

Co-authored-by: Ivan Tham <pickfire@riseup.net>
@archseer
Copy link
Member

archseer commented Nov 3, 2021

Thanks! 🎉

@archseer archseer merged commit 7a0c432 into helix-editor:master Nov 3, 2021
gibbz00 added a commit to gibbz00/helix that referenced this pull request Jan 19, 2023
BTree was being used to store a list of keyevents
for a given command. This list was only iterated
over twice to in the end be converted to a Vec.

Better to just use a Vec from start given the use-
case. Temporalily reverts helix-editor#952.
gibbz00 added a commit to gibbz00/helix that referenced this pull request Jan 19, 2023
This, along with previous commit reverts regression in helix-editor#952
gibbz00 added a commit to gibbz00/helix that referenced this pull request Jan 22, 2023
BTree was being used to store a list of keyevents
for a given command. This list was only iterated
over twice to in the end be converted to a Vec.

Better to just use a Vec from start given the use-
case. Temporalily reverts helix-editor#952.
gibbz00 added a commit to gibbz00/helix that referenced this pull request Jan 22, 2023
This, along with previous commit reverts regression in helix-editor#952
gibbz00 added a commit to gibbz00/helix that referenced this pull request Jan 25, 2023
BTree was being used to store a list of keyevents
for a given command. This list was only iterated
over twice to in the end be converted to a Vec.

Better to just use a Vec from start given the use-
case. Temporalily reverts helix-editor#952.
gibbz00 added a commit to gibbz00/helix that referenced this pull request Jan 25, 2023
This, along with previous commit reverts regression in helix-editor#952
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.

None yet

3 participants