Skip to content

feat(fidget): improve progress overlay rendering - #319

Merged
fcoury-oai merged 1 commit into
mainfrom
fcoury/fidget-rendering
Aug 22, 2026
Merged

fcoury-oai merged 1 commit into
mainfrom
fcoury/fidget-rendering

Conversation

@fcoury-oai

Copy link
Copy Markdown
Collaborator

Long LSP progress messages can stretch across most of the editor, and Fidget currently inherits popup backgrounds that make the overlay look like an opaque block. This keeps progress visible without letting it dominate the editing surface.

  • add optional maximum-width and overflow behavior to generic plugin overlays
  • truncate by terminal display width with a configurable Unicode marker while preserving the useful suffix
  • configure Fidget for a 60-column cap and transparent header/message backgrounds
  • recompute the effective width across narrow and wide terminal resizes

How to Test

  1. Open a large Rust workspace with Fidget enabled and wait for rust-analyzer progress. Confirm the bottom-right overlay uses the editor background and long paths are capped with a leading … while retaining their suffix.
  2. Resize the terminal narrower and then wider while progress is visible. Confirm the overlay stays inside the viewport and returns to its configured width after expanding.
  3. Run cargo test -p red plugin::overlay::tests --lib and cargo test -p red fidget_ --lib; the overlay width, Unicode truncation, resize recovery, styling, and progress regressions should pass.

@fcoury-oai
fcoury-oai merged commit cec6375 into main Aug 22, 2026
12 checks passed
@fcoury-oai
fcoury-oai deleted the fcoury/fidget-rendering branch August 22, 2026 22:20
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