! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Show full path of the file in the title bar by default
Status:
RESOLVED: FIXED
Severity:
enhancement
Product:
Mousepad
Component:
General

Comments

Description Maximilian Schleiss editbugs 2007-02-11 16:48:09 CET
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.1) Gecko/20061201 Firefox/2.0.0.1 (Ubuntu-feisty)
Build Identifier: 

The subject says it all, it could be useful to have the full path of the file in the title bar.
I have a lot of mousepad windows open concerning files with the same name and it would be very usefull to have an option to chow the full path in the title bar.

Reproducible: Always

Steps to Reproduce:
1.open a file
2.check the title bar


Actual Results:  
It only shows the actual name of the file

Expected Results:  
Show the full path of the file, at least until the users home folder ~.
Comment 1 Simon Stelling 2007-03-08 13:14:01 CET
Created attachment 1025 
patch

I like this idea. The patch attached implements the described behaviour.
Comment 2 Nick Schermer editbugs 2007-03-09 08:34:05 CET
The patch probably works (I haven't tried it), but showing the full path in the title should definitely be a (hidden) setting.
Comment 3 Simon Stelling 2007-03-09 09:32:05 CET
How about a --fullpath command line switch?
Comment 4 Erik Harrison 2007-03-09 16:28:38 CET
Not so sure about that Nick. Once you accept the possibility that a person might have more than one file open (tabs) then the idea of them having multiple files with the same name open is a pretty common usecase.

Should probably just slide this under Options, but I'm actually thinking that a more HIG compliant layout may make us rearrange our various menus anyway.

Leaving this bug open for now.
Comment 5 Simon Steinbeiss editbugs 2013-05-06 23:13:10 CEST
This is an extremely old, yet still valid bugreport. Especially since I started using mousepad with tabs a lot I can see the problem of using a few files with the same name.
Although the path is visible as tooltip on the tabs, the statusbar seems pretty empty for me most of the time, makes me wonder whether it could simply go there?
Comment 6 Andre Miranda editbugs 2013-10-14 05:42:16 CEST
It's indeed a very helpful feature. Notepad++ for example has it as default.
Firefox on the other hand displays the file path on the tab and the window title remains as "Mozilla Firefox".
Well if think this feature should be merged, at least as turned off as default.
Just my 2 cents.

P.S.: The patch can't be applied because Mousepad 0.3.0 was a complete rewrite. I could "refurbish" it once we come to an agreement.
Comment 7 Matthew Brush editbugs 2013-10-26 05:06:19 CEST
I'd rather not introduce a GUI option for this, but there's no reason not to make it a setting in the simple to edit config file. What should be the default?
Comment 8 Andre Miranda editbugs 2013-10-27 02:23:11 CET
I believe this should be enabled as default, I think it's useful and most editors do this as default(gEdit, mEdit, Notepad++, Geany...).
The config option seems nice to people that might not like this(IMHO this is the minority).
Comment 9 Simon Steinbeiss editbugs 2013-10-27 17:25:00 CET
I second the request to make this the default setting (ON).
Comment 10 Matthew Brush editbugs 2013-11-02 23:51:35 CET
It seems this is already implemented as a (hidden) config file option called 'MiscPathInTitle' and only we need to change the default. I updated the bug report title and will leave open till change is merged.
Comment 11 Matthew Brush editbugs 2014-07-12 06:47:55 CEST
FWIW, I added this existing preference to the new preferences dialog in http://git.xfce.org/apps/mousepad/commit/?id=43e987372941c4c4caca4428b00e60b3a618e00f. I didn't make it default to on, but that would be trivial to do.
Comment 12 Andre Miranda editbugs 2014-07-12 16:57:37 CEST
Seems good enough for me.
Thanks Matt.
Comment 13 Theo Linkspfeifer editbugs 2019-06-17 23:16:44 CEST
Created attachment 8644 
patch
Comment 14 Git Bot editbugs 2019-06-17 23:39:48 CEST
Theo Linkspfeifer referenced this bugreport in commit 48f78021d71dea488f1f41de93a208be2da2b145

Show full path in window title by default (Bug #2896)

https://git.xfce.org/apps/mousepad/commit?id=48f78021d71dea488f1f41de93a208be2da2b145
Comment 15 Andre Miranda editbugs 2019-06-17 23:41:39 CEST
The patch works fine, if the user never changed that preference, it will default to the new value.
Thanks Theo!

Bug #2896

Reported by:
Maximilian Schleiss
Reported on: 2007-02-11
Last modified on: 2019-06-17

People

Assignee:
Matthew Brush
CC List:
6 users

Version

Target Milestone:
Mousepad 0.4.x

Attachments

patch (3.16 KB, patch)
2007-03-08 13:14 CET , Simon Stelling
no flags
patch (876 bytes, patch)
2019-06-17 23:16 CEST , Theo Linkspfeifer
no flags

Additional information