Use platform shortcuts and scale terminal text per window

Cache font metrics across pane and tab switches. Resize text, cursors, and PTY grids together, using the active window’s font size when multiple windows share a shell.
This commit is contained in:
James Magahern
2026-11-17 14:49:35 -08:00
parent 12ba7abdd2
commit 10fa542937
6 changed files with 379 additions and 146 deletions
+34 -28
View File
@@ -142,34 +142,38 @@ run `psyterm --shutdown` on the remote host, for example through SSH.
## Controls
| Input | Action |
| --- | --- |
| Ctrl/Cmd+Shift+P | Open the command palette |
| Click a tab | Switch the server's active tab |
| `+` or Ctrl+Shift+T | Create a tab |
| Ctrl+Shift+D or Alt+\ | Add a pane beside the focused pane |
| Alt+Left / Right | Focus the adjacent pane, then adjacent tab at the edge |
| Alt+Shift+[ / ] | Switch to the previous / next tab |
| Alt+Shift+N or Alt+Shift+Right | Create a tab |
| Alt+Shift+Up / Down | Insert a stacked pane above / below the current pane |
| Alt+Up / Down | Expand the previous / next stacked pane |
| Click a collapsed pane title | Expand and focus that pane |
| 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/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 |
| Mouse wheel / touchpad | Scroll terminal history |
| Shift+PageUp / PageDown | Scroll one page |
| Shift+Home / End | Jump to oldest history / live screen |
| Action | macOS | Linux |
| --- | --- | --- |
| Increase terminal text size | Cmd+Plus or Cmd+= | Ctrl+Plus or Ctrl+= |
| Decrease terminal text size | Cmd+Minus | Ctrl+Minus |
| Open or dismiss the command palette | Cmd+Shift+P | Ctrl+Shift+P |
| Create a tab | Cmd+T | Ctrl+Shift+T |
| Add a pane to the right | Cmd+D | Ctrl+Shift+D or Alt+\ |
| Insert a stacked pane above / below | Option+Shift+Up / Cmd+Shift+D | Alt+Shift+Up / Down |
| Focus the adjacent pane or tab | Cmd+Option+Left / Right | Alt+Left / Right |
| Switch tabs | Cmd+Shift+[ / ] | Alt+Shift+[ / ] |
| Focus the previous / next stacked pane | Cmd+Option+Up / Down | Alt+Up / Down |
| Cycle through panes | Cmd+[ / ] | Ctrl+Shift+Left / Right |
| Close the focused pane and its shell | Cmd+W | Ctrl+Shift+W |
| Rename the focused pane | Cmd+Shift+R | Ctrl+Shift+R |
| Copy selection / paste | Cmd+C / Cmd+V | Ctrl+Shift+C / Ctrl+Shift+V |
| Quit the GUI and keep sessions running | Cmd+Q | Window `×` |
| Scroll one page | Shift+PageUp / PageDown | Shift+PageUp / PageDown |
| Jump to oldest history / live screen | Shift+Home / End | Shift+Home / End |
Navigation follows the `shared` bindings in `~/.config/zellij/config.kdl`, with
Alt+\ from its default `locked` mode. Existing psyTerm shortcuts remain available;
Zellij's modal Ctrl bindings are left to terminal programs.
Click a tab to switch, `+` to create a tab, or a collapsed pane title to expand it.
Drag, double-click, or triple-click to select text, a word, or a line. Scroll with
the mouse wheel or touchpad. Closing the window detaches the GUI and keeps the
server sessions running.
Choose **Rename tab** in the palette to edit the selected tab's name. When
renaming a pane or tab, press Enter to save or Escape to cancel. Saving a blank
name restores automatic naming.
Both platforms also support the Alt shortcuts from Zellij's `shared` map and
Alt+\ from its `locked` map. On macOS, Alt is the Option key.
Alt+Shift+N and Alt+Shift+Right also create a tab. Plain Ctrl shortcuts such
as Ctrl+C and Ctrl+D reach the terminal.
The command palette searches command names and keywords as you type. Arrow keys
or Tab select a result; Enter runs it or opens a submenu. Escape returns to the
@@ -238,7 +242,9 @@ Neovide's MIT license and both sources are recorded in
Font preference is Hermit (including Hurmit Nerd Font variants), SF Mono,
Noto Sans Mono, Iosevka, then another verified fixed-pitch family. Text uses
15 logical pixels and a 20-pixel line height. Rendering supports ANSI/256
15 logical pixels with a 20-pixel line height by default. The text-size shortcuts
resize all terminals in the focused window, including panes opened there later.
Each new window starts at the default size. Rendering supports ANSI/256
colors, truecolor, bold/italic/dim, underline, reverse video, wide characters,
and combining marks. Alacritty supplies terminal modes and 10,000 lines of
scrollback by default.