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

Command palette column spacing doesn't shrink #12415

Open
mecjb opened this issue Jan 5, 2025 · 1 comment
Open

Command palette column spacing doesn't shrink #12415

mecjb opened this issue Jan 5, 2025 · 1 comment
Labels
C-enhancement Category: Improvements

Comments

@mecjb
Copy link

mecjb commented Jan 5, 2025

Summary

The column spacing for bindings in the command palette adjusts to the width of the widest visible bindings set, but never shrinks. This makes some doc strings unreadable, especially when they overflow and end up right aligned (see asciinema). I use the command palette regularly for binding reminders and command discoverability.

Reproduction Steps

In the square terminal the bindings start too wide, making the doc strings too short to be readable, and right aligned. In the wide terminal the columns dynamically resize up, but never shrink back down when long bindings are no longer visible.

square terminal
square

wide terminal
wide

Helix log

No response

Platform

macOS

Terminal Emulator

kitty 0.34.1

Installation Method

brew

Helix Version

helix 25.1 (dabfb6c)

@mecjb mecjb added the C-bug Category: This is a bug label Jan 5, 2025
@mecjb
Copy link
Author

mecjb commented Jan 5, 2025

Of course after I post the issue I stumble across it being mentioned before #9647 (comment). The thread mentions width handling is naive and could be improved later, but I don't see any followups about it.

@the-mikedavis the-mikedavis added C-enhancement Category: Improvements and removed C-bug Category: This is a bug labels Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: Improvements
Projects
None yet
Development

No branches or pull requests

2 participants