kitty/docs
Chance Zibolski 26032a4802 Vertical tabs: support multi-line tab titles
Newlines in tab_title_template were drawn as a linefeed without a carriage
return, so each line started where the previous one ended, staircasing to the
right. Titles also collided with the tab below them after two lines, because
update_vertical assumed a fixed two line stride per tab.

Set LNM on the tab bar screen so a newline returns to the start of the next
line, measure how many lines each title actually occupies, and pack tabs at
cumulative offsets.

The blank line between tabs is preserved: one is inserted between tabs while
there is room, and dropped automatically once the tabs need the space, as
before. Previously this fell out of every tab reserving two lines, which is no
longer true now that a tab occupies only as many lines as its title needs.

The number of lines a title may use is limited by the new tab_title_max_lines
option, defaulting to 1 so existing configurations render as before. Lines
beyond the limit are dropped rather than bleeding into the next tab, and a title
is never allowed to use more lines than remain below it, since drawing past the
last line would scroll the tab bar and lose the tabs already drawn.

Only vertical tab bars are affected; horizontal tab bars share a single row.
2026-08-01 09:17:55 -07:00
..
_static
_templates
kittens docs: add kitty-action-menu to user kittens list 2026-07-27 11:24:20 +02:00
screenshots
actions.rst
basic.rst
binary.rst
build.rst
changelog.rst Vertical tabs: support multi-line tab titles 2026-08-01 09:17:55 -07:00
clipboard.rst
color-stack.rst
conf.py ... 2026-07-04 09:23:16 +05:30
conf.rst
deccara.rst
desktop-notifications.rst
dnd-protocol.rst Mark dnd protocol as stable 2026-06-12 09:50:41 +05:30
extract-rst-targets.py
faq.rst
file-transfer-protocol.rst
glossary.rst ... 2026-07-14 08:15:47 +05:30
graphics-protocol.rst Add desktui to the list of applications using the graphics protocol 2026-07-29 00:06:55 +02:00
index.rst
installer.sh
integrations.rst Add kmv to integrations 2026-06-10 12:54:45 +05:30
intro_vid.rst
invocation.rst
keyboard-protocol.rst
kittens_intro.rst
launch.rst
layouts.rst
Makefile
mapping.rst
marks.rst
misc-protocol.rst
multiple-cursors-protocol.rst
notifications.py
open_actions.rst
overview.rst
performance.rst
pipe.rst
pointer-shapes.rst
press-mentions.rst
protocol-extensions.rst
quake-screenshots.rst
quickstart.rst
rc_protocol.rst
remote-control.rst
requirements.txt
sessions.rst
shell-integration.rst
support.html
support.rst
text-sizing-protocol.rst
underlines.rst
unscroll.rst
wide-gamut-colors.rst