Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tabs are too wide for smaller window sizes #1691

Open
parcelcat opened this issue Apr 17, 2019 · 17 comments
Open

Tabs are too wide for smaller window sizes #1691

parcelcat opened this issue Apr 17, 2019 · 17 comments

Comments

@parcelcat
Copy link

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

@gnunn1
Copy link
Owner

gnunn1 commented Apr 17, 2019

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

@parcelcat
Copy link
Author

Yes, it appears to be the same for Adwaita.

Adwaita Tilix

@gnunn1
Copy link
Owner

gnunn1 commented Apr 22, 2019

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

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

@parcelcat
Copy link
Author

The output of tilix --version is:

Versions
	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.

@dreamcat4
Copy link

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.

@dreamcat4
Copy link

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.

@Briffou
Copy link

Briffou commented Aug 25, 2019

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

Versions
	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.

Briffou added a commit to Briffou/tilix that referenced this issue Oct 13, 2019
@Briffou
Copy link

Briffou commented Oct 13, 2019

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 5529234 seems to help a lot, see Briffou@8e9ba0f

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

@dreamcat4
Copy link

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

@wallneradam
Copy link

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

@andrehtgti2
Copy link

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

@Pajn
Copy link

Pajn commented Mar 26, 2020

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

@andrehtgti2
Copy link

Any new version to fix this ?

@unixfox
Copy link

unixfox commented Jan 18, 2021

image

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

Versions
	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

@mrliptontea
Copy link

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.

@jmdeejay
Copy link

jmdeejay commented Mar 4, 2021

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.

@IzhakJakov
Copy link

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests