Skip to content

feat(stack): Add stack-wide popup visibility toggle with safe restore#16

Merged
mhiro2 merged 1 commit intomainfrom
fix/toggle-visibility-suppress-events
Feb 24, 2026
Merged

feat(stack): Add stack-wide popup visibility toggle with safe restore#16
mhiro2 merged 1 commit intomainfrom
fix/toggle-visibility-suppress-events

Conversation

@mhiro2
Copy link
Copy Markdown
Owner

@mhiro2 mhiro2 commented Feb 24, 2026

Summary

  • Added :PeekstackToggleVisibility to temporarily hide/show all popups in the current stack.
  • Introduced a hidden stack state where popup models remain in memory while popup windows are closed.
  • Hardened hide/show behavior by suppressing window/buffer close handlers during intentional hide operations.
  • Expanded tests to run with events.setup() enabled and verified no history entries are leaked during hide.

Changes

  • e8ae5bf : feat(stack): add popup visibility toggle with safe restore
    • Implemented stack visibility toggle flow (hide by closing popup windows, show by reopening from stored
      models).
    • Added a suppress_win_events guard to prevent WinClosed/BufWipeout handlers from removing
      intentionally hidden popups.
    • Added/updated visibility-toggle tests, including coverage for event-enabled execution and history non-
      leak behavior.

@mhiro2 mhiro2 self-assigned this Feb 24, 2026
@mhiro2 mhiro2 added the enhancement New feature or request label Feb 24, 2026
@mhiro2 mhiro2 merged commit 4061533 into main Feb 24, 2026
3 checks passed
@mhiro2 mhiro2 deleted the fix/toggle-visibility-suppress-events branch February 24, 2026 00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant