After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 110979 - RFE: The label on tabs should be ellipsized the other way round
RFE: The label on tabs should be ellipsized the other way round
Status: RESOLVED WONTFIX
Product: gnome-terminal
Classification: Core
Component: general
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: GNOME Terminal Maintainers
GNOME Terminal Maintainers
list-kmaraas
Depends on:
Blocks:
 
 
Reported: 2003-04-16 22:33 UTC by Mariano Suárez-Alvarez
Modified: 2006-02-02 18:11 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
Path to change ellipsizing mode on terminal tab labels (8.38 KB, patch)
2003-04-16 22:35 UTC, Mariano Suárez-Alvarez
rejected Details | Review
Oops. Apply this after the last patch: can't have a zero property_id... (221 bytes, patch)
2003-04-16 23:04 UTC, Mariano Suárez-Alvarez
rejected Details | Review

Description Mariano Suárez-Alvarez 2003-04-16 22:33:33 UTC
This is very debatable, I guess, but anyway.

Currently, the label on a screen tab gets ellipsized so that the ending of
the text is replaced by an ellipsis. If, say, the bash prompt is set up so
that it puts the cwd on the term title, then what you'll see when space
starts getting short is the begining of the path, which is not usually the
most significant part of it. 

Next is a patch which changes that. One has to change
eel/eel-ellipsizing-label, because right now things are set up so that
making it ellipsize from the start causes it to right-justify the labels,
and that looks ugly.

This could easily be fixed by changing the prompt, too, at least for the
problem with bash-prompts in tabs...

This could become a key in /apps/gnome-terminal/global.

IMO tab labels should have tooltips with the whole title, too, but thats
another matter...
Comment 1 Mariano Suárez-Alvarez 2003-04-16 22:35:11 UTC
Created attachment 15782 [details] [review]
Path to change ellipsizing mode on terminal tab labels
Comment 2 Havoc Pennington 2003-04-16 22:39:08 UTC
Hmm, what if your title is a hostname?

It might need to be a pref, but there are a lot of other requests 
for prefs, more than will fit in the prefs dialog. So we'd kind of 
need to make a list and prioritized. I created a "pref" keyword 
the other day to support making the list but then I didn't go 
through and tag the bugs yet. ;-)

One thing we can do on Linux and Solaris at least is 
set working directory as title without using shell prompt hacks, 
and then we'd know it was a directory and be able to handle 
it properly, but I don't know if that's a full solution.
This would add a pref also, so it doesn't really get us anywhere.
Probably a bad idea.
Comment 3 Mariano Suárez-Alvarez 2003-04-16 23:02:04 UTC
Having g-t set the title to the cwd would not work: mainly because
you'd then have applications (eg, vim) that set the term title
fighting g-t for it.

There is no Right Choice in choosing what gets chopped off the label.

One Bad Choice would be to s/EEL_ELLIPSIZE_START/EEL_ELLIPSIZE_MIDDLE/
in terminal-window.c.
Comment 4 Mariano Suárez-Alvarez 2003-04-16 23:04:32 UTC
Created attachment 15784 [details] [review]
Oops. Apply this after the last patch: can't have a zero property_id...
Comment 5 Kjartan Maraas 2003-04-22 15:29:10 UTC
Havoc, any changes here?
Comment 6 Havoc Pennington 2003-04-22 15:36:57 UTC
I think this needs more thought on whether to add the pref 
etc.
Comment 7 Kjartan Maraas 2004-09-04 07:22:53 UTC
Downing pri based on #6
Comment 8 Olav Vitters 2005-07-01 22:08:34 UTC
Mariano is now the maintainer, so...
Comment 9 Guilherme de Siqueira Pastore 2006-02-01 19:22:40 UTC
OK, let's consider a few points here. First, the default behaviour suits most situations, there aren't many exceptions for that. Second, no matter how much gnome-terminal is targeted at power users, adding a preference for that would be trashing the whole "Just Works (tm)" moto, while there are also a pile of more important preferences pending implementing (or simply applying a patch) because there is no space left on the preference dialog.

I'll probably accept disagreements on this with good reasoning, but am marking it as WONTFIX for now.
Comment 10 Behdad Esfahbod 2006-02-01 21:47:34 UTC
What about making it to ellipsize middle?
Comment 11 Guilherme de Siqueira Pastore 2006-02-02 18:11:10 UTC
You end up possibly hiding anything that's useful on the left and on the right.