Bug 218844

Summary: Konsole should make better use of the available space of the tab bar
Product: [Applications] konsole Reporter: qqqqqqqqq9
Component: tabbarAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED FIXED    
Severity: wishlist CC: adaptee, mwoehlke.floss, robertknight
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description qqqqqqqqq9 2009-12-15 22:17:25 UTC
Version:            (using Devel)
OS:                Linux
Installed from:    Compiled sources

Hi,
konsoles tab-titles use the available space very inefficiently. e.g 
if there are two tabs one third of the tab bar stays empty and the titles are shortened 20 characters even if there would be place for 60-100. It would be nice, if it were possible to tell konsole to uses the space a bit more aggressively.
Thanks
Comment 1 Robert Knight 2009-12-16 11:03:55 UTC
I don't think this needs an option - just a smarter algorithm to make better use of the available space.
Comment 2 Matthew Woehlke 2009-12-24 01:28:36 UTC
This bugs me also. I agree there is no need for an option; just make use of the available space.

There is Qt code to guess how much space a text string will take. I presume Konsole knows (or can query) the width of the tabs? If so, on relayout, just query the text width and, if it fits, display the whole text. If not, query the width of just the ellipsis and from there do a binary search to determine how many characters will fit.

I can dig up some code for 'how much space will this string take' if needed, but probably would not get to it until after the new year.
Comment 3 Kurt Hindenburg 2012-08-02 03:05:49 UTC
the tab width was change  a while ago so this shouldn't be as bad as it was.