On 03/30/2014 09:59 PM, Cyrille Artho wrote:
At least going back to LyX 1.0, documents saved with those old
versions import fine with LyX 2.0. I remember having used LyX prior to
version 1.0 but I can't find any older files right now. In any case, I
think it's more common to open an old file, than to open a newer file
saved in an older format. And in that case the file ends with .lyx and
has no version number in the file name.
As LyX can handle older formats fine, I don't see a reason for having
.X.lyx as an extension. Just using .lyx would be fine IMHO. In any
case, "*.lyx" matches "*.X.lyx" as well when using Unix-style glob
semantics, so one pattern to rule them all is better.
The reason we have the extra extension is because these files are
created by export and we have to create a new filename. I.e., if you
load myfile.lyx and want to export it to 1.6 format, we can't just write
myfile.lyx. We used to write myfile.lyx16, but that caused this very
problem. So now we write myfile.16.lyx, and there is no issue about the
file dialog.
Richard
Richard Heck wrote:
On 03/28/2014 10:49 AM, Vincent van Ravesteijn wrote:
If the user wants to open a file, there is a list with filters reading:
LyX Documents (*.lyx)
LyX-1.3.x Documents (*.lyx13)
LyX-1.4.x Documents (*.lyx14)
LyX-1.5.x Documents (*.lyx15)
LyX-1.6.x Documents (*.lyx16)
This might be rather confusing for users that switch to LyX 2.1 from
LyX
2.0 and want to open their LyX 2.0 files.
I take it this is because we used to export to previous versions with
those
odd extensions, which we no longer do. We have not, in fact, done so
since
1.6.x. Even 1.6.x documents exported from 2.0.x end in ".16.lyx", not in
".lyx16", so the last one is even misleading.
I'd suggest simply eliminating all those other filters in 2.1.0.
Richard