mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-28 12:21:55 +00:00
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. |
||
|---|---|---|
| .. | ||
| _static | ||
| _templates | ||
| kittens | ||
| screenshots | ||
| actions.rst | ||
| basic.rst | ||
| binary.rst | ||
| build.rst | ||
| changelog.rst | ||
| clipboard.rst | ||
| color-stack.rst | ||
| conf.py | ||
| conf.rst | ||
| deccara.rst | ||
| desktop-notifications.rst | ||
| dnd-protocol.rst | ||
| extract-rst-targets.py | ||
| faq.rst | ||
| file-transfer-protocol.rst | ||
| glossary.rst | ||
| graphics-protocol.rst | ||
| index.rst | ||
| installer.sh | ||
| integrations.rst | ||
| 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 | ||