Tilix: Tabs are too wide for smaller window sizes

Created on 17 Apr 2019  路  16Comments  路  Source: gnunn1/tilix

In version 1.9.0 and newer, the minimum tab width is too high. Version 1.8.9 and earlier were able to display many tabs in a 720px width window (at 100% display scale), but the current version can only fit 2 tabs in the same window.

Tilix

Can't Reproduce bug

Most helpful comment

As this behaviour was quite annoying for me, I investigated a little bit more, and find that setting hhomogeneous parameter to false for the GtkStack introduced in https://github.com/gnunn1/tilix/commit/552923400bada2f0a1960e4b9a29b8588d46be31 seems to help a lot, see https://github.com/Briffou/tilix/commit/8e9ba0fe9343da3d57d9c3eae490e594a3586ad4

As I know anything in Gtk and Tilix code, I'm quite hesitant to make a PR, but if a maintainer confirms me that it's a good correction, I'll do it.

Before/after comparison:

Before, I could only open 3 tabs before left and right arrows appears on each side of the window (no matter what was the active theme) :
before

After setting hhomogeneous parameter to false, I can open up to 8 tabs :
after

All 16 comments

Do you see the same behavior when using Adwaita as the gtk theme?

Yes, it appears to be the same for Adwaita.

Adwaita Tilix

I cannot reproduce the issue, what is the output of tilix --version?

Also, what do you have set for session title in your configuration?

The output of tilix --version is:

    Tilix version: 1.9.1
    VTE version: 0.56
    GTK Version: 3.24.8

Tilix Special Features
    Notifications enabled=0
    Triggers enabled=0
    Badges enabled=1

The default session name is ${directory}, and the screenshots were taken from the / directory.

Hello, I also have a similar type of issue. At a certain point, the tabs stop getting smaller. And a limit is hit. On my ultrawide monitor, with 3440-58px width (subtracting the 59px for the dock). Then it stops hard at 13 tabs. (3440-58)/13 = 260.1538461538461px

tilix --version
Versions
    Tilix version: 1.9.1
    VTE version: 0.54
    GTK Version: 3.24.4

Tilix Special Features
    Notifications enabled=0
    Triggers enabled=0
    Badges enabled=1

This is on ubuntu 18.10, budgie desktop 10.5, with the following desktop UI themes:

  • Widgets - Arc-Dark
  • Icons - Surfn-Evopop
  • Cursors - Adwwaita

It would seem that the first one "Widgets" is the main desktop theme.

Perhaps it could be possible to add a new setting, for defining a "Minimum tab size" ? So if users want many more tabs open, at a smaller width. Vs the other people who would rather prefer to see the Title of the tab text not be truncated so much.

Another point is that ATM (because I cannot see many of my tabs, they are scrolled off the end). Well then can I put a window number at the Front of each tab text? Like 1. <tab_title> for the 1st tab. Then 2. Second Tab and 3. Third Tab Title etc. Because that would make it much easier for me to identify which tab I am currently scrolling over to. When each tab title is otherwise identical. For example I have multiple tabs open all within in the same directory etc. This prefixing of a fixed tab number would also aid navigation when the tab width is too narrow to be truncated. But also when they are scrolling off the screen and look the same. Either way. Just a quick suggestion. Kind regards.

Still have the issue describe by @articlecat, tabs "don't shrink enough", even on default theme Adwaita (on Fedora 30),
tilix --version :

    Version de Tilix聽: 1.9.1
    Version de VTE聽: 0.56
    Version de GTK聽: 3.24.10

dnf info tilix :

Nom          : tilix
Version      : 1.9.3
Publication  : 1.fc30
Architecture : x86_64
Taille       : 4.0 M
Source       : tilix-1.9.3-1.fc30.src.rpm
D茅p么t        : @System
Depuis le d茅 : updates
R茅sum茅       : Tiling terminal emulator
URL          : https://github.com/gnunn1/tilix
Licence      : MPLv2.0 and GPLv3+ and CC-BY-SA
Description  : Tilix is a tiling terminal emulator with the following features:

Note: It also seems that the tilix version is not consistent between the two outputs.

As this behaviour was quite annoying for me, I investigated a little bit more, and find that setting hhomogeneous parameter to false for the GtkStack introduced in https://github.com/gnunn1/tilix/commit/552923400bada2f0a1960e4b9a29b8588d46be31 seems to help a lot, see https://github.com/Briffou/tilix/commit/8e9ba0fe9343da3d57d9c3eae490e594a3586ad4

As I know anything in Gtk and Tilix code, I'm quite hesitant to make a PR, but if a maintainer confirms me that it's a good correction, I'll do it.

Before/after comparison:

Before, I could only open 3 tabs before left and right arrows appears on each side of the window (no matter what was the active theme) :
before

After setting hhomogeneous parameter to false, I can open up to 8 tabs :
after

Cool man.... @gnunn1 can you please take a loot at this? Seems like a pretty good idea.

I recompiled Tilix (on Ubuntu 19.10) with the patch @Briffou did, and it works as I think it should.

Hi!
I am using Ubuntu 19.10 and Tilix 1.9.1
and the tab width is still too wide
I installed tilix via apt-get install tilix
Is there a solution ?

tilix --version
Versions
Tilix version: 1.9.1
VTE version: 0.58
GTK Version: 3.24.12
Tilix Special Features
Notifications enabled=0
Triggers enabled=0
Badges enabled=1

I have this problem too, is it possible to set hhomogeneous to false without recompiling?

Any new version to fix this ?

image

I've the same issue on KDE Plasma 5. The buttons are way too big also for some unknown reason.

    Tilix version聽: 1.9.1
    VTE version聽: 0.62
    GTK Version聽: 3.24.24

Tilix Special Features
    Notifications enabled=0
    Triggers enabled=0
    Badges enabled=1

Same issue here. On my screen, I can only open 5 tabs before they get the side-scrolling arrows. By comparison in GNOME Terminal I can open 20+ tabs before they start scrolling and the tab UI there is identical.

I think we should merge the fix suggested by @Briffou. It does the job for me.
Else I have to reverse to an old version of tilix (1.8.9) in order to have manageable tabs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sliddjur picture sliddjur  路  3Comments

wesselih picture wesselih  路  4Comments

vaijab picture vaijab  路  3Comments

milisarge picture milisarge  路  3Comments

zsrinivas picture zsrinivas  路  4Comments