Skip to content

Protect pi windows from being hijacked by other commands#14

Closed
dnouri wants to merge 1 commit intomasterfrom
feat/protected-windows
Closed

Protect pi windows from being hijacked by other commands#14
dnouri wants to merge 1 commit intomasterfrom
feat/protected-windows

Conversation

@dnouri
Copy link
Owner

@dnouri dnouri commented Jan 2, 2026

Add window protection to prevent commands like magit-status from reusing pi windows for displaying their buffers.

Following the pattern used by speedbar and erc-status-sidebar:

  • Both chat and input windows are marked as dedicated
  • Input window has no-other-window (skipped by other-window)
  • Input window has no-delete-other-windows (survives delete-other-windows)
  • Chat window remains navigable via other-window

The protection is enabled by default and can be disabled via the new pi-protect-windows customization variable.

Add window protection to prevent commands like magit-status from
reusing pi windows for displaying their buffers.

Following the pattern used by speedbar and erc-status-sidebar:
- Both chat and input windows are marked as dedicated
- Input window has no-other-window (skipped by other-window)
- Input window has no-delete-other-windows (survives delete-other-windows)
- Chat window remains navigable via other-window

The protection is enabled by default and can be disabled via the
new pi-protect-windows customization variable.

Closes: Discussion about magit hijacking pi windows
@dnouri
Copy link
Owner Author

dnouri commented Feb 11, 2026

Ancient

@dnouri dnouri closed this Feb 11, 2026
@dnouri dnouri deleted the feat/protected-windows branch February 11, 2026 11:38
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