Bug 184740 - Konsole tab automatic title is sometimes wrong
Summary: Konsole tab automatic title is sometimes wrong
Status: RESOLVED NOT A BUG
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Mandriva RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-18 01:34 UTC by gambas
Modified: 2009-06-21 22:12 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
The tab bar of konsole with some wrong titles in it (5.36 KB, image/png)
2009-02-18 01:35 UTC, gambas
Details

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