diff options
| author | user <user@clank> | 2026-08-09 00:00:45 +0200 |
|---|---|---|
| committer | user <user@clank> | 2026-08-09 00:00:45 +0200 |
| commit | e44292e32cd3fb6d21a34386652c44df872fe797 (patch) | |
| tree | 74a97b9300900c93fc2e5b4297e517c4d191cc57 /default-plugins/plugin-manager | |
| parent | sl0p: preview pane reordering live while dragging (diff) | |
| download | sl0ppij-e44292e32cd3fb6d21a34386652c44df872fe797.tar.gz sl0ppij-e44292e32cd3fb6d21a34386652c44df872fe797.tar.xz sl0ppij-e44292e32cd3fb6d21a34386652c44df872fe797.zip | |
sl0p: first keystroke replaces the old tab name when renaming
Entering RenameTab left the existing name in place and appended to it, so
renaming a tab meant clearing it by hand first. The first printable keystroke
now REPLACES it, the way a text field with its contents selected behaves.
Armed when a client enters RenameTab and disarmed when it leaves, so a
keystroke that arrives later cannot wipe a name the user was not editing.
Backspace and delete deliberately do NOT replace: reaching for them means
editing the existing name, not discarding it.
The flag is taken out of the set BEFORE borrowing the active tab, since
get_active_tab_mut borrows self mutably and every branch consumes the flag
anyway.
Applies to renames from any entry point - the keybind and the sl0pstatus
double-click-a-tab both go through Screen::change_mode.
Pane rename is deliberately left alone for now; say the word and it can get
the same treatment.
Baselines held: zellij-server 1441/30.
Diffstat (limited to 'default-plugins/plugin-manager')
0 files changed, 0 insertions, 0 deletions
