Bug 430 - Show and edit filename extensions
: Show and edit filename extensions
Status: RESOLVED WONTFIX
Product: Utilities
File manager
: 4.1.1 (4.2008.30-2)
: All Maemo
: Low enhancement with 20 votes (vote)
: ---
Assigned To: unassigned
: file-manager-bugs
:
: enhancement-it2005, ITOS2007HE-garage...
:
:
  Show dependency tree
 
Reported: 2006-03-04 22:15 UTC by Michael Wiktowy
Modified: 2010-06-15 10:38 UTC (History)
8 users (show)

See Also:


Attachments
patch to enable viewing of filename extensions (2.91 KB, patch)
2010-06-11 15:40 UTC, Marcus Wikström
Details


Note

You need to log in before you can comment on or make changes to this bug.


Description Michael Wiktowy (reporter) 2006-03-04 22:15:46 UTC
Background:
When I have a file that I have downloaded onto the 770 that has a potentially
bad file extension, I try to rename it to something that the 770 will recognize.
Since the media viewers seem to be very picky about only trying to view files
with extensions that it recognizes regardless of the content, I am forced into
this renaming mode rather than just being able to pick any file from the media
reader's file selection dialog.

Problem:
When I rename the extention to something the 770 regognizes, there is currently
no way to rename it to something else. In all places except the shell (not
installed by default and slightly user unfriendly) and the delete option, the
extension is hidden.

Potential soutions:
1) (prefered) Expose the option to unhide known file extentions in the UI
somewhere. I hate this feature in Windows and that is one of the first things
that I disable. I am sad to see that the 770 has adopted that unhelpful feature
without providing a way to easily turn it off.
2) Show the extension in the "Rename" dialog popup so that at least you can
modify it. Maybe not highlight it by default (like the regular Gnome desktop
does) so that someone typing without looking won't wipe the extension out.
Comment 1 Maemo QA (deprecated) 2006-05-08 19:10:33 UTC
Claiming ownership.
Comment 2 Maemo QA (deprecated) 2006-05-08 19:11:00 UTC
Enhancement, will be forwarded to upstream maintainer ASAP.
Comment 3 Maemo QA (deprecated) 2006-05-22 14:50:35 UTC
Feature request has been forwarded to upstream maintainer.
Comment 4 Michael Wiktowy (reporter) 2007-01-30 01:39:16 UTC
This problem is still present in the the latest N800/OS2007.
Comment 6 Andre Klapper maemo.org 2008-11-14 20:43:38 UTC
From the current Fremantle File management UI Specification:
"File extensions are hidden. The exception to this is unknown file types,
which, if they have file extensions, will show them as an aide to
identification."

> When I have a file that I have downloaded onto the 770 that has a potentially
> bad file extension,

Any example for this? Please provide an exact usecase, otherwise it can be
quite hard to convince the people that decided this.

> 1) (prefered) Expose the option to unhide known file extentions in the UI
> somewhere.

Michael, would a gconf key work for this, as I consider this request an
advanced user option?

Anyway, this is the only report in all those years, and it has 0 votes. Hence
it's probably a WONTFIX.
Comment 7 Michael Wiktowy (reporter) 2008-11-19 10:17:57 UTC
Admittedly this is not a common issue but it is an irreversible one with the
standard GUI.

I've been in several situations where I've had to rename a file extension just
to get it past a brain-dead email filter and if the tablet recognized the new
faked extension, there would be no GUI way to change it back.

The hidden extension UI design choice is a silly MSWindows one (but at least
you can turn it off easily there) that was not inherited by the GNOME desktop
(or KDE or XFCE AFAIK) so I am surprised that it was included in Maemo. Linux
doesn't entirely depend on the file extension to define the mime-type so
treating it like a super special immutable part of the filename like it is in
MSWindows is a mistake.

A gconf hack would be sufficient for my purposes but I can already correct
mistakes on the command line.

If the Maemo designers insist on hiding information from the user, I would be
happy if the extension showed up and was editable in the file properties
dialog. At least the user wouldn't have to resort to the command line if a
fat-finger edit of the extension did mistakenly happen on file save.
Comment 8 Quim Gil nokia 2008-12-09 11:01:28 UTC
Roope, any ideas on this one?
Comment 9 Quim Gil nokia 2008-12-23 15:13:18 UTC
Changing summary since easy editing of filename extensions is also requested.
Comment 10 Roope Rainisto nokia 2008-12-23 15:18:29 UTC
Well. At least from the UI side we do not expect/want to show filename
extensions normally in the UI also anytime in the near future. 

The main problem is about mime types and selecting and supporting multiple
applications for a given filetype at the same time. That is an important issue,
and it is being actively discussed, also for Harmattan. 

But whatever the solution is, I don't think it should be left up to the user to
have to a) care b) see or c) have to edit file type extensions, in relation to
seeing the file name. 

So I'd say wontfix to this. (Although yes, we are certainly trying to improve
filetype handling by itself.)
Comment 11 Benoît HERVIER 2009-11-09 18:00:56 UTC
Hum ... 

Example : 

I'm the author of PyGTKEditor, since fremantle, we can't use anymore
gtk.FileChooserDialog due to the theme with his enormous Open button.

But as an source code editor, i want to open one file of my project in which
contain the following files :

- pygtkeditor.py
- pygtkeditor.pyo
- pygtkeditor.service
- pygtkeditor.desktop

But there is no differences visible between this file in the
hildon.FileChooserDialog ... extension is really nedded ...

But it s seems you assume seeing extension isn't for end user ? But here it s
difficult without ...

same thing for image editor ... how does i select the png  version of an image
which exist also in jpg ... random choose ...
Comment 12 Andre Klapper maemo.org 2009-11-30 15:04:40 UTC
*** Bug 6451 has been marked as a duplicate of this bug. ***
Comment 13 Venomrush 2009-12-13 12:37:10 UTC
Is this confirmed as a won't fix?

Cannot consider N900 as a mobile 'computer' anymore if it doesn't show or let
us do anything with file extension.
Comment 14 Andre Klapper maemo.org 2009-12-14 11:12:18 UTC
(In reply to comment #13)
> Is this confirmed as a won't fix?

Confirmed by what?!
Re-read comment 10? :-)
Comment 15 Venomrush 2009-12-14 11:57:52 UTC
(In reply to comment #14)

> Confirmed by what?!
> Re-read comment 10? :-)
> 

Cool seems like this will have to be install as a plugin for advanced users
similar to Petrovich.
Comment 16 Benoît HERVIER 2009-12-14 16:49:02 UTC
"But whatever the solution is, I don't think it should be left up to the user
to
have to a) care b) see or c) have to edit file type extensions, in relation to
seeing the file name. "

This is where we don't have the same point of view ...
I think i should be left up to the user !

And wontfix is not acceptable ... again !!!
Comment 17 Luis 2010-01-18 14:25:18 UTC
Hello

Is this still "won't fix"?

If so, is there any way (plugins, hacks, a replacement File Manager and file
dialog, whatever) to get this functionality? 

I know that it is not easy to argue that the Fremantle specification of hiding
file extensions is flawed, just as Windows implementations are, so I'm not
going to do this here. I just want to have a fully functional File Manager,
even if the default configuration is to hide the file extension and parts of
the file system.



(In reply to comment #16)
> "But whatever the solution is, I don't think it should be left up to the user
> to
> have to a) care b) see or c) have to edit file type extensions, in relation to
> seeing the file name. "
> 
> This is where we don't have the same point of view ...
> I think i should be left up to the user !
> 
> And wontfix is not acceptable ... again !!!
Comment 18 Andre Klapper maemo.org 2010-01-18 14:32:53 UTC
Please don't fullquote the entire previous comment without a reason, and please
don't answer above the quote. Yes, this is WONTFIX currently, still.
Comment 19 Benoît HERVIER 2010-01-18 15:30:57 UTC
> If so, is there any way (plugins, hacks, a replacement File Manager and file
> dialog, whatever) to get this functionality? 

I don't know any except rewriting a dialog from scratch.
Comment 20 Venomrush 2010-03-17 01:09:07 UTC
*** Bug 9525 has been marked as a duplicate of this bug. ***
Comment 21 Danny Milosavljevic 2010-06-08 17:34:59 UTC
(In reply to comment #19)
> > If so, is there any way (plugins, hacks, a replacement File Manager and file
> > dialog, whatever) to get this functionality? 
> 
> I don't know any except rewriting a dialog from scratch.

Umm, what do you mean, from scratch? The source is available.
Check
<http://repository.maemo.org/pool/maemo5.0/free/libh/libhildonfm/libhildonfm_2.28.18+0m5.tar.gz>
file "hildon-file-chooser-dialog.c" and "hildon-file-selection.c" (the latter
being the list).
Comment 22 Benoît HERVIER 2010-06-08 17:42:05 UTC
Indeed ... but a bit useless for python dev.
Comment 23 Marcus Wikström 2010-06-11 15:40:46 UTC
Created an attachment (id=2870) [details]
patch to enable viewing of filename extensions

Made a patch that enables filename extensions to be seen in hildon file manager
and file chooser dialog.

First it simply bypass the few lines that strips the extension from known
filetypes.
Second it rearranges the audio file listing from the current

track
author

to

title
author / track

so that the filename becomes visible.
used libhildonfm_2.28.18+0m5.tar.gz as source for this patch
Comment 24 Gary Birkett 2010-06-11 15:52:07 UTC
do any of these related bugs have internal versions?
it makes sense to track patches and assess viability of integration.
Comment 25 Andre Klapper maemo.org 2010-06-14 16:23:59 UTC
(In reply to comment #23)
> Made a patch that enables filename extensions to be seen in hildon file manager
> and file chooser dialog.

Does the patch make the new behavior optional, e.g. by setting a gconf flag?
Comment 26 Gary Birkett 2010-06-14 16:28:51 UTC
(In reply to comment #25)
> (In reply to comment #23)
> > Made a patch that enables filename extensions to be seen in hildon file manager
> > and file chooser dialog.
> 
> Does the patch make the new behavior optional, e.g. by setting a gconf flag?
> 

i don't see any in the patch and think we should.
the functionality improvement is nice, but it changes the default behaviour at
present.
if we had it on a gconf flag, the default behaviour could remain and those who
wish to opt out and use alternative setting should be able to.
Comment 27 daves 2010-06-15 06:31:13 UTC
The default behaviour is equivalent to having a set of unlabelled buttons where
the user has to guess which one to press. If someone wants to delete a file,
and can't tell them apart without the extension, they can either not delete
either file (which amounts to a bug "file manager cannot manage files"), or
they have to guess which one to delete (which amounts to a bug "file manager
sometimes deletes wrong file"). Neither option is acceptible for a File
Manager. As far as i understand, the patch effectively puts labels on the
buttons, making the file manager actually useful. 

I really can't understand the resistance to actually admitting that there may
be problems with the original philosophy of hiding all extensions. There are
simply cases where the file extension is the *only* way to distinguish files. 




> 
> i don't see any in the patch and think we should.
> the functionality improvement is nice, but it changes the default behaviour at
> present.
> if we had it on a gconf flag, the default behaviour could remain and those who
> wish to opt out and use alternative setting should be able to.
>
Comment 28 Andre Klapper maemo.org 2010-06-15 10:32:25 UTC
(Please do not answer above the quoted comment and please strip unneeded
quoting)
Comment 29 Gary Birkett 2010-06-15 10:38:24 UTC
(In reply to comment #27)
> The default behaviour is equivalent to having a set of unlabelled buttons where
> the user has to guess which one to press. If someone wants to delete a file,
> and can't tell them apart without the extension, they can either not delete
> either file (which amounts to a bug "file manager cannot manage files"), or
> they have to guess which one to delete (which amounts to a bug "file manager
> sometimes deletes wrong file"). Neither option is acceptible for a File
> Manager. As far as i understand, the patch effectively puts labels on the
> buttons, making the file manager actually useful. 
> 
> I really can't understand the resistance to actually admitting that there may
> be problems with the original philosophy of hiding all extensions. There are
> simply cases where the file extension is the *only* way to distinguish files. 
> 
> 

i know for a fact the default behaviour will not be modified, so lets skip the
theoretical discourse and try to find a path where those who want the different
behaviour can have it?
we all know there are people who prefer showing file extensions, its exactly
the same as in windows.
:)