Skip to content

A long path or name no longer widens the window - #98

Closed
crustovsky wants to merge 1 commit into
in-place-updatesfrom
long-paths
Closed

crustovsky wants to merge 1 commit into
in-place-updatesfrom
long-paths

Conversation

@crustovsky

Copy link
Copy Markdown
Owner

Closes #93. Stacked on the in-place updates PR.

A label that named a folder or an item asked for the full width of its text and the window followed (pack in a deep folder: 1100 px to 1647 px; the conflict bar around a long name: over 3000 px).

  • FittedLabel, beside ElidedLabel: as wide as its text when there is room, cut in the middle when there is not. It carries the messages of the prompt, choice, check, mount, conflict, error and log bars, the title of open with, a job row's title and the job panel's current name.
  • The pack panel's title elides and its destination box no longer sizes itself to the other pane's path. A job row's current name elides.
  • The job panel's From and To stay plain labels, since they can be selected; they are cut at the edge.
  • The error bar's text no longer wraps: a path has no spaces to wrap at.
  • test_window opens every panel and bar twice, in short folders and in two some 230 characters deep around a 120 character name, and asks for the same minimum width both times. It failed on sixteen of them before the change.

Found with the same probe and left open: #96, the sync and multi-rename panels need about 1060 px of window for their own rows of controls.

🤖 Generated with Claude Code

A label that named a folder or an item asked for the full width of its
text, and the window followed: where it could grow it grew and stayed
that wide, where it could not (a tiling or scrolling layout) the
content was cut at the edge. Pack in a deep folder took a 1100 px
window to 1647 px; the conflict bar asked for over 3000 px around a
long name.

What names something now gives way. FittedLabel (beside ElidedLabel)
asks for the width of its text when there is room and is cut in the
middle when there is not, so the start of the sentence and the end of
the path both stay. It carries the messages of the prompt, choice,
check, mount, conflict, error and log bars, the title of open with, a
job row's title and the job panel's current name. The pack panel's
title elides and its destination box no longer sizes itself to the
other pane's path. A job row's current name elides. The job panel's
From and To stay plain labels, since they can be selected; they are
cut at the edge instead of asking for their width.

The error bar's text no longer wraps: a path has no spaces to wrap at,
so wrapping never helped the case that was too wide.

test_window opens every panel and bar twice, in short folders and in
two some 230 characters deep around a 120 character name, and asks for
the same minimum width both times.

Closes #93

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@crustovsky

Copy link
Copy Markdown
Owner Author

In main through #107; released in v0.9.6.

@crustovsky crustovsky closed this Nov 26, 2026
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.

1 participant