Skip to content

Add label field to [[tabs.panes]] for declarative pane naming#33

Open
javimb wants to merge 3 commits into
cloudmanic:mainfrom
javimb:feat/add-panes-label
Open

Add label field to [[tabs.panes]] for declarative pane naming#33
javimb wants to merge 3 commits into
cloudmanic:mainfrom
javimb:feat/add-panes-label

Conversation

@javimb

@javimb javimb commented Jun 30, 2026

Copy link
Copy Markdown

Summary

  • Add optional label field to ProjectPane so project/worktree layouts can name panes declaratively
  • Add paneRename client method calling herdr's pane.rename socket API
  • Rename panes in layoutTabs after creation (best-effort — logs warning on failure, never aborts layout)

Closes #26

Changes

  • project.go: Add Label string field to ProjectPane
  • herdr.go: Add paneRename method (mirrors tabRename)
  • projects.go: Call paneRename in the layout loop for non-blank labels
  • project_test.go: Verify labels parse and survive effectivePanes()
  • examples/projects/example.toml + README.md: Document the field

Test plan

  • go test ./... passes
  • TestEffectivePanes verifies labels flow through normalization (including empty-command panes)
  • Manual: open a project with label set on panes, confirm borders show the label

🤖 Generated with Claude Code

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.

Add a label field to [[tabs.panes]] so layouts can name panes declaratively

1 participant