Skip to content

Conversation

@inyutin
Copy link

@inyutin inyutin commented Sep 27, 2025

Allow users to specify a predefined layout when creating a session through the attach command using the --layout/-l flag. The layout option is only effective when creating a new session (with --create/-c or --create-background/-b).

Changes:

  • Add layout field to Sessions::Attach CLI structure
  • Update attach command processing to handle layout parameter
  • Add layout_info assignment when creating sessions with layout
  • Add e2e test for attach with layout functionality
  • Add splitted_test_layout.kdl fixture for testing

Usage:
zellij attach session-name --create --layout my-layout

Allow users to specify a predefined layout when creating a session
through the attach command using the --layout/-l flag. The layout
option is only effective when creating a new session (with --create/-c
or --create-background/-b).

Changes:
- Add layout field to Sessions::Attach CLI structure
- Update attach command processing to handle layout parameter
- Add layout_info assignment when creating sessions with layout
- Add e2e test for attach with layout functionality
- Add splitted_test_layout.kdl fixture for testing

Usage:
  zellij attach session-name --create --layout my-layout
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