Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(plugins): add stringified layout to switch_session_with_layout #3503

Merged
merged 1 commit into from
Jul 18, 2024

Conversation

imsnif
Copy link
Member

@imsnif imsnif commented Jul 18, 2024

When switching sessions through the plugin API, there is now an option to provide a stringified layout rather than one of the builtin ones, from a file or from a URL.

eg.

switch_session_with_layout(Some("my-cool-session-name"), LayoutInfo::Stringified("
layout {
    tab split_direction=\"vertical\" {
        pane;
        pane;
    }
    tab {
        pane
        pane;
        pane;
    }
}".to_owned()), Some("/tmp".into()));

@imsnif imsnif merged commit 2deffc3 into main Jul 18, 2024
6 checks passed
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