My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 463: Custom Title Feature Suggestion
5 people starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


Sign in to add a comment
 
Reported by wolte...@gmail.com, Jun 30, 2009
This is a suggestion. Its not a bug.

Due to the various suggestions and bugs about applications showing unwanted
titles (for one reason or another), I think the solution is to create a
feature which will allow the usage of custom titles.

Some markup can be created, like this:

%t = Window title
%n = Original name
%e = Executable name

So, the user would input in a text box the name he wants the application to
show as label. For example, if I wanted the Text Editor (whose title is
Text Editor in the global menu) to show "Gedit - Untitled Document", I
would enter in the custom title textbox:

%e - %t

I hope you find this a good idea.
Aug 1, 2009
Project Member #1 rainwood...@gmail.com
This is a good idea, but we need some more clearly defined rules before proceeding.

I can understand %t is for the window title. But what does '%n' original name mean?

In your GEdit example, it seems to me the rule should give us

(%e ) - (      %t                )
gedit - Unsaved Document 1 - gedit

which doesn't improve the situation any better.
Labels: -Type-Defect -Priority-Medium Type-Enhancement Priority-High Milestone-Release0.7.7
Aug 2, 2009
#2 wolte...@gmail.com
Ok, I would be happy if I answer your questions in the following text:

The %x variables are only to hold possible computed values developers might want to
define for the comfort of the users. What I think you are missing here is the fact
that these are supposed to be entered in a text box, where you can also enter raw
text. That way, if you wanted Gedit to show a different title, you could enter in the
"custom title" box: "Text Editor - %f" where %f would be filename, giving me "Text
Editor - Untitled" in a default case. Just ignore the variables I put before, they
are just examples.

Now, I am not very sure myself what I meant with %n haha.
Aug 3, 2009
Project Member #3 rainwood...@gmail.com
Well there is always going to be a way for the user to input something.

The most difficult thing is to obtain the values of the %x variables. %f for example,
without knowledge of the specific application, we don't know if the part of window
title after '-' is the file name. Most applications don't follow any rules.

Aug 3, 2009
#4 wolte...@gmail.com
I guess that leaves us almost no options but to add an option for a custom title
input. No dynamic variables.
Dec 9, 2009
#5 solidsl...@gmail.com
Any progress on that? I'd like to rename some of the labels.
Mar 3, 2010
#6 feens...@chem.vu.nl
The string now shown as 'Label' or 'Title' (nomenclature in the dialog is
inconsistent) does not make sense to me. My best bet would be to have the actual
window title (as normally shown in the title bar, and reported by xwininfo with
'Window id').

Other options could be gleaned from the 'match' options in CompizConfig Settings
Manager on Ubuntu Window Class, for example for one of my gnome-terminal's: 
Window Class: 'Gnome-terminal'
Window Title: 'user@notebook: ~/src/gnome-globalmenu-0.7.9 - Terminal'
Window Name: 'gnome-terminal'
For e.g. Firefox: 
Class is 'Firefox' 
Name is 'Navigator'
Title is 'Issue 463 - gnome2-globalmenu - Custom Title Feature Suggestion - Project
Hosting on Google Code - Mozilla Firefox'. 
For me, Class and Name are not informative (enough), while the Title can be overly
verbose. Going out on a limb, perhaps an advanced feature like regexp search/replace
can be used to customize from the (verbose) Window Title?

P.S., none of my options above give a string that is anywhere like the label now used
by global menu. So there obviously is more to this than I'm aware of.

Mar 15, 2010
#7 zwaldow...@gmail.com
What about .desktop relations?  So that gnome-terminal would show up as "Terminal," gedit as "Text Editor" (on 
Ubuntu), etc?
Sign in to add a comment

Powered by Google Project Hosting