Add screen-style multi-session support and recursive split panes#52
Merged
Merged
Conversation
Multi-session (screen-style): - Replace the singleton reattach info file with a session registry under ~/.config/linkshell/sessions/<id>.json. Each detached server registers its own id, pid, sockets, and token; `linkshell ls` lists live sessions (pruning dead pids) and `linkshell -r <id>` reattaches to a specific one. Bare `linkshell` (and `linkshell new [name]`) always starts a fresh server; `linkshell -r` with no id attaches the sole running session. Recursive split panes: - New layout.rs: a binary LayoutTree (Leaf/Split) with split/close/rotate and in-order rect tiling. Replace the fixed two-pane LayoutMode + [Option;2] model with tree + Vec-based panes/pane_sizes so any pane can be split any number of times, in either direction. Chat docking now splits a dedicated pane and undocking closes it (sibling reclaims the space). - Keys: alt-\ split right, alt-- split down, alt-w close, alt-r rotate, alt-o focus next. Config actions: split_pane_right, split_pane_down, close_pane, rotate_split, focus_next_pane. Docs (README, in-app help, CHANGELOG) updated. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Multi-session (screen-style):
linkshell lslists live sessions (pruning dead pids) andlinkshell -r <id>reattaches to a specific one. Barelinkshell(andlinkshell new [name]) always starts a fresh server;linkshell -rwith no id attaches the sole running session.Recursive split panes:
Docs (README, in-app help, CHANGELOG) updated.