From d35c642ef36ee5ac2afe7c1b18ad5a717bc807d8 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Sat, 13 Jun 2026 01:59:24 +0300 Subject: [PATCH] feat: add pane move api and cli refs #299 --- docs/next/CHANGELOG.md | 4 + .../src/content/docs/cli-reference.mdx | 3 + .../website/src/content/docs/socket-api.mdx | 34 +- src/api/mod.rs | 1 + src/api/schema.rs | 25 + src/api/schema/panes.rs | 63 + src/api/server.rs | 1 + src/api/subscriptions.rs | 4 + src/app/actions.rs | 2 + src/app/api.rs | 1 + src/app/api/panes.rs | 1084 ++++++++++++++++- src/app/ids.rs | 4 + src/app/mod.rs | 1 + src/app/state.rs | 2 + src/cli/pane.rs | 234 +++- src/layout.rs | 40 + src/protocol/wire.rs | 2 +- src/workspace.rs | 146 +++ src/workspace/tab.rs | 80 +- tests/api_ping.rs | 2 +- tests/cli_wrapper.rs | 12 +- tests/client_mode.rs | 36 +- tests/cross_area.rs | 16 +- tests/detach_reattach.rs | 44 +- tests/multi_client.rs | 2 +- tests/server_headless.rs | 14 +- 26 files changed, 1782 insertions(+), 75 deletions(-) diff --git a/docs/next/CHANGELOG.md b/docs/next/CHANGELOG.md index 9f44d529..c4271cf6 100644 --- a/docs/next/CHANGELOG.md +++ b/docs/next/CHANGELOG.md @@ -2,7 +2,11 @@ ## Unreleased +### Added +- Added `pane.move` and `herdr pane move` to relocate a running pane into another tab, a new tab, or a new workspace without restarting its terminal process. (#299) + ### Changed +- Bumped the client/server protocol version to 14 for `pane.move` compatibility. (#299) - Public workspace, tab, and pane ids are now short stable handles such as `w1`, `w1:t1`, and `w1:p1`; closed tab and pane ids no longer retarget later resources. (#569) ## [0.6.10] - 2026-06-11 diff --git a/docs/next/website/src/content/docs/cli-reference.mdx b/docs/next/website/src/content/docs/cli-reference.mdx index 32baa746..fc6be710 100644 --- a/docs/next/website/src/content/docs/cli-reference.mdx +++ b/docs/next/website/src/content/docs/cli-reference.mdx @@ -121,6 +121,9 @@ herdr pane rename