aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorPeter Geissler <peter@haxx.in>2026-09-20 19:49:09 +0200
committerPeter Geissler <peter@haxx.in>2026-09-20 19:49:09 +0200
commit1b70e64fdb82344edb9b56a7374263539ce3fa0d (patch)
treee07a90c051f110303d4c6f71a38033e95b9e97d0 /docs
parenttabs: air before the new-tab button, and the option to do without it (diff)
downloadslosh-1b70e64fdb82344edb9b56a7374263539ce3fa0d.tar.gz
slosh-1b70e64fdb82344edb9b56a7374263539ce3fa0d.tar.xz
slosh-1b70e64fdb82344edb9b56a7374263539ce3fa0d.zip
sidebar: a talkative pane can no longer cost you a tab
Rows were spent in tab order until they ran out, so statuses from early tabs simply consumed the rows later tabs needed for their labels. Four tabs of three announcing panes in a sixteen-row terminal left the fourth tab with no row and no hit anywhere on the sidebar -- not clipped, unreachable -- and the new-tab button went with it. The list is the navigation and a status is an annotation on it, so the annotation is what gives way. Before drawing a tab's statuses, reserve a row for each tab still to come and one for the button, and allow the statuses only what is left over. The "and more" ellipsis is measured against that allowance rather than the cap, so a list cut short by the height still says it was cut, the same as one cut short by the setting. The pad is deliberately not reserved: it already gives itself up a cell at a time, which is the same order of surrender -- spacing, then extra statuses, then statuses, never the thing they are about.
Diffstat (limited to 'docs')
-rw-r--r--docs/panes.md7
1 files changed, 5 insertions, 2 deletions
diff --git a/docs/panes.md b/docs/panes.md
index 1884b53..9e437a2 100644
--- a/docs/panes.md
+++ b/docs/panes.md
@@ -89,8 +89,11 @@ puts that line under its tab — visible from every other tab, which is the
point — and a pane that died shows how instead (`exited: status 3`). At most
`tab_bar_status` rows per tab (3 by default, 0 turns it off); more than that
and the last row is an ellipsis rather than a status pretending the list is
-complete. **Clicking a status row jumps to the pane that said it**, across
-tabs. A status is set in italic rather than indented under its tab — the slant
+complete. A short terminal cuts the list the same way, and says so the same
+way: **the statuses give way before the tabs do**, because the list is how you
+navigate and a status is only an annotation on it — a talkative pane must not
+be able to cost you a tab you can click. **Clicking a status row jumps to the
+pane that said it**, across tabs. A status is set in italic rather than indented under its tab — the slant
says "this belongs to the row above" without spending columns a narrow sidebar
has none of, and says it on a monochrome theme too. The colour is part way
from `tab_count` to `tab_hover` — the live thing in the sidebar should not read