Bug 218844 - Konsole should make better use of the available space of the tab bar
Summary: Konsole should make better use of the available space of the tab bar
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: tabbar (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-15 22:17 UTC by qqqqqqqqq9
Modified: 2012-08-02 03:05 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.