[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 52980] Default extension .ksp doesn't append to saved filename
From:       Clarence Dang <dang () kde ! org>
Date:       2004-05-12 11:25:01
Message-ID: 20040512112501.12313.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
      
http://bugs.kde.org/show_bug.cgi?id=52980      




------- Additional Comments From dang kde org  2004-05-12 13:24 -------
On Wed, 12 May 2004 01:30 am, David Faure wrote:
> On Tuesday 11 May 2004 07:41, Andrey S.Cherepanov wrote:
> > No, for given filename with dot (e.g. "spread.file") extension ".ksp"
> > doesn't append to filename. Expected "spread.file.ksp". Saved as
> > "spread.file".
>
> Well that's because ".file" looks like an extension already....
> Imagine you want to name your kspread files foo.kspread because .ksp looks
> ugly. You can actually do that. If .ksp was always appended, then you
> wouldn't be able to.
Exactly, it's like the .htm vs .html and .jpg vs .jpeg debate.

> On the other hand, it makes a difference whether one types the filename
> first or selects the type first, since when selecting the type in the
> Filter combo, the extension is automatically changed (even when having
> typed "spread.file"). So this looks a bit inconsistent...
Suppose the text editor had "text/plain" as the default selected mimetype to 
save in (so that it automatically appends .txt for windows users).  If you've 
opened a .cpp file and click Save As, I don't think the filedialog should 
automatically change "file.cpp" to "file.txt" immediately - that would be 
annoying and inconsistent (File/Save As on an open file should always 
overwrite the current file if no options are changed).  That should only 
happen if you play with the filter combo.

On Wed, 12 May 2004 02:23 am, Andrey S.Cherepanov wrote:
> it will be better to append default extension in all cases.
So if the application passes "file.ksp" as the default filename to save as and 
then user press Ok, it will save as "file.ksp.ksp"?  You could get the 
application/filedialog to strip the extension before the filedialog displays, 
so that only "file" will be in the Location textbox and so that it will 
append the extension to save as "file.ksp" but this doesn't work if you want 
your own extension like ".kspread".  Also think about cases with double 
extensions like '.tar.gz" esp. if you want dots in your filename distinct 
from the extensions.

Using dots in filenames for anything other than extensions is almost like 
using /, ? or *.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic