Bug 184740

Summary: Konsole tab automatic title is sometimes wrong
Product: [Applications] konsole Reporter: gambas <g4mba5>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED NOT A BUG    
Severity: normal CC: andresbajotierra, kde, robertknight
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Mandriva RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: The tab bar of konsole with some wrong titles in it

Description gambas 2009-02-18 01:34:55 UTC
Version:            (using KDE 4.2.0)
OS:                Linux
Installed from:    Mandriva RPMs

Setting the tab title with the current directory automatically is a great feature, but it sometimes fails.

For example, the current path is: "/home/benoit/gambas/3.0/trunk/gb.qt/src", and the title is "gb.qt/s".

I attach a screenshot of one of my opened konsole.
Comment 1 gambas 2009-02-18 01:35:46 UTC
Created attachment 31428 [details]
The tab bar of konsole with some wrong titles in it
Comment 2 Nicolas L. 2009-02-18 13:00:28 UTC
confirming
Comment 3 Robert Knight 2009-02-18 13:02:22 UTC
This is actually intentional.  It makes it easier to tell tabs apart when you have multiple tabs opened in similarly named directories.

For example:

/home/yourname/project1/src/
/home/yourname/project2/src/
/home/yourname/project2/some-external-library/src/share

Are renamed to 'project1/s', 'project2/s', 'some-external-library/s/s'

The list of directory names is hard-coded although there is a hidden config option to change it.
Comment 4 gambas 2009-02-18 14:38:17 UTC
OK! So clever that I didn't imagine it was intentional... :-)
Comment 5 Matthew Woehlke 2009-02-20 01:13:20 UTC
Robert: is it possible to change the text color for /only/ the abbreviated portion? That would make it more obvious that konsole is doing something "special"...
Comment 6 Robert Knight 2009-02-20 13:41:33 UTC
>  is it possible to change the text color
> for /only/ the abbreviated portion?

Only by re-implementing the tab painting code.  Qt only supports rich text in certain places.
Comment 7 Dario Andres 2009-06-21 22:12:45 UTC
Should this be merged with bug 167590 ? Thanks