feat(op): add a managed new-pane action #63
Labels
No labels
breaking-change
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
skip-release-notes
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
barrettruth/tmux-mosaic#63
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Mosaic has no explicit pane-creation command today. Users must rely on raw tmux
split-windowbehavior and target syntax, which makes pane insertion layout-dependent and hard to reason about.A conservative transient-pane policy also needs an explicit way to say:
Design
Add a top-level Mosaic operation:
#{E:@mosaic-exec} new-paneThis operation should create a pane, preserve the same shell/path defaults users expect from tmux, mark the new pane as owned by the current window, and then relayout using the window's current layout.
Required behavior
#{pane_current_path}semanticssplit-window -P -F '#{pane_id}'after-split-windowhook handling so Mosaic does not race with itself and misclassify its own new pane as foreignHook race handling
This issue must define a suppression mechanism for Mosaic-generated splits, for example a short-lived window-scoped token indicating:
The exact token shape is implementation-defined, but the flow must be robust enough that
new-panedoes not suspend the window or double-relayout.Scope
This issue is about the core op plumbing.
It should add:
new-paneLayout-specific insertion semantics are tracked separately.
Non-goals
Acceptance criteria
new-paneexists as a top-level Mosaic opafter-split-windowand suspend the windowSuggested implementation surface
scripts/ops.shscripts/helpers.shnew-pane