fix(help): keep the shortcuts panel inside its dock #54
Merged
BlackAngelTV
merged 2 commits from 2026-12-03 10:17:02 +01:00
fix/help-action-column into main
No Reviewers
Labels
Clear labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Breaking change that won't be backward compatible
Something is not working
Documentation changes
Improve existing functionality
New functionality
This is security issue
Issue or pull request related to testing
Priority
Critical
1
The priority is critical
Priority
High
2
The priority is high
Priority
Medium
3
The priority is medium
Priority
Low
4
The priority is low
Reviewed
Confirmed
1
Issue has been confirmed
Reviewed
Duplicate
2
This issue or pull request already exists
Reviewed
Invalid
3
Invalid issue
Reviewed
Won't Fix
3
This issue won't be fixed
Status
Blocked
1
Something is blocking this issue or pull request
Status
Need More Info
2
Feedback is required to reproduce issue or to continue work
Status
Abandoned
3
Somebody has started to work on this but abandoned work
Breaking change that won't be backward compatible
Something is not working
Documentation changes
Improve existing functionality
New functionality
This is security issue
Issue or pull request related to testing
Priority
Critical
1
The priority is critical
Priority
High
2
The priority is high
Priority
Medium
3
The priority is medium
Priority
Low
4
The priority is low
Reviewed
Confirmed
1
Issue has been confirmed
Reviewed
Duplicate
2
This issue or pull request already exists
Reviewed
Invalid
3
Invalid issue
Reviewed
Won't Fix
3
This issue won't be fixed
Status
Blocked
1
Something is blocking this issue or pull request
Status
Need More Info
2
Feedback is required to reproduce issue or to continue work
Status
Abandoned
3
Somebody has started to work on this but abandoned work
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: FWS/FWS-Kitty#54
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
The action column of the keyboard shortcuts panel was written without any width bound, so on a narrow dock the text was cut by the panel edge, in the middle of an identifier:
The column is now sized from the room the row leaves and truncated with a single-cell
…inside that column, the key column shrinks on very narrow docks so a row always fits, and the full name of the selected action is shown on the help line when its column had to ellipsize it.Changes
kittens/command_palette/main.go: bound the action column, adaptive key column, ellipsis (…instead of...), full action on the detail line.kittens/command_palette/main_test.go: tests for the column budget, the ellipsis and the row width at 10/20/35/50/104 cells.docs/changelog.rst: changelog entry.Tests
go test ./kittens/command_palette/gofmton the touched filesThe panel is drawn by the Go TUI loop, so the tests cover the width arithmetic rather than a rendered screen; the panel itself was not viewed.
Fixes #50