Add manual tab names with selected-pane fallback

This commit is contained in:
2026-11-17 08:56:02 -08:00
parent d8630c2d52
commit 6b2bd8c064
8 changed files with 281 additions and 20 deletions
+13 -4
View File
@@ -55,8 +55,8 @@ its zygote for new GUI windows, preserving existing windows and shells. Changes
to server logic or the protocol still require restarting the server;
`--shutdown` also ends its shell sessions.
This build uses protocol version 3. An older server must be restarted before
attaching; the new `psyterm --shutdown` command can stop version-1 and version-2 servers.
This build uses protocol version 4. An older server must be restarted before
attaching; `psyterm --shutdown` can stop servers using versions 1–3.
Finish any running work first, since shutdown ends its sessions, then launch
`psyterm` again to start the updated server.
@@ -118,8 +118,9 @@ run `psyterm --shutdown` on the remote host, for example through SSH.
| Ctrl+Shift+Left / Right | Focus the previous / next pane |
| Ctrl+Shift+W | Close the focused pane and its shell |
| Ctrl+Shift+R | Edit the pane name |
| Palette → Rename tab | Edit the selected tab's name |
| Enter / Esc while renaming | Save / cancel the edit |
| Save a blank name | Restore automatic pane naming |
| Save a blank name | Restore automatic pane/tab naming |
| Window `×` | Detach this GUI; keep server sessions running |
| Drag / double-click / triple-click | Select text / word / line |
| Ctrl+Shift+C / V | Copy selection / paste with negotiated bracketed-paste mode |
@@ -150,6 +151,13 @@ with `~`; pane headers and equal-width tabs truncate long names in the middle.
It checks shell directories every 500 ms, including while the shell is idle. Manual names survive program title changes and client disconnects;
returning to automatic naming uses the latest program title or directory.
Tabs use a manual name when set; otherwise they inherit the selected pane's
effective name. Use **Rename tab** in the command palette to edit the tab label
inline. Enter saves; Escape or clicking elsewhere cancels. Saving an empty name
or choosing **Use automatic tab name** restores inheritance immediately. Tab
names are server-owned and survive pane switches, shell exits within the tab,
and client reconnects.
Tabs form the horizontal dimension; each column within a tab has an ordered
vertical stack. One pane per stack is expanded, with the other titles above and
below it. Creating or switching stacked panes uses the same curve as tab changes,
@@ -267,7 +275,8 @@ Tests cover protocol framing, socket ownership, binary bridge flushing,
key/paste encoding, palettes, fonts, cursor curves, rendering assembly, PTY
lifecycle, and server reattachment/layout behavior. Pane tests cover natural
shell exit, empty-tab removal, focus preservation, idle directory changes,
program/manual name precedence, title resets, and rename persistence. Editor
program/manual name precedence, title resets, and rename persistence. Tab-name
tests cover manual precedence, selected-pane inheritance, resets, and reconnects. Editor
tests cover Unicode selection and composition; protocol tests pin the previous
versions’ shutdown handshakes. Stack tests cover insertion, navigation, hidden
output, reattachment, exit cleanup, and command bursts without intervening snapshots.