Skip to content

feat(runtime,terminal): support plugin-owned Dwindle Panel surfaces and focus input routing #3199

Closed

Description

@Xuepoo

Priority: P1 | Area: runtime | Labels: feat, P1, area:runtime | Milestone: v0.1.0 | RFC: Pane!=PTY | Task: CTX-1859

Summary

Wire plugin-created non-terminal panels (PanelType::Rich / Helper via bitty.panel.create) into the live Dwindle workspace layout so plugins like file-manager can occupy a first-class tiling Panel instead of only mounting onto overlay or bottom band slots.

Scope

  1. Dwindle Layout Integration: Materialize a View backed by ViewContent::Panel(panel_id) in the focused workspace via the Dwindle split layout when a plugin creates/opens a panel, and remove the leaf when closed/disposed/unloaded.
  2. Panel-Scoped Declarative UI Surface: Allow the owning plugin generation to mount/update its UiRichNode tree onto its own panel_id (using PanelRuntime::attach_panel_scene), painted into the panel's viewport rect.
  3. Focus-Driven Input Routing: When a ViewContent::Panel(panel_id) leaf is focused, keep global Bitty navigation/chrome keybindings (alt+h/j/k/l, alt+w, alt+e, alt+n, etc.) working, and route non-global key/mouse input to the owning plugin.
  4. Ownership & Isolation: Enforce that only the owning plugin generation can render to or close panel_id, and never allow painting over ViewContent::Terminal leaves.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1area:runtimefeat

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions