Skip to content

Auto-resize trouble window to fit item count - #95

Open
ompugao wants to merge 1 commit into
masterfrom
feat/auto_fit_trouble_win
Open

Auto-resize trouble window to fit item count#95
ompugao wants to merge 1 commit into
masterfrom
feat/auto_fit_trouble_win

Conversation

@ompugao

@ompugao ompugao commented May 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • After each item fetch, resize the Trouble window height to #items + #unique_groups so the window shrinks to fit when fewer items are present
  • Caps at 35% of editor height (existing size = 0.35 max)
  • Minimum height of 1 line
  • Applies dynamically on every refresh (BufWritePost, InsertLeave, BufEnter) in both patto_tasks and patto_tasks_review sources

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