After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 306729 - A mapping from template extension to document extension should exist
A mapping from template extension to document extension should exist
Status: RESOLVED OBSOLETE
Product: nautilus
Classification: Core
Component: general
2.19.x
Other Linux
: Normal enhancement
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-06-06 23:22 UTC by Reinout van Schouwen
Modified: 2021-06-18 15:28 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
Proposed patch against HEAD. (1.89 KB, patch)
2005-07-11 16:59 UTC, Christian Neumair
needs-work Details | Review

Description Reinout van Schouwen 2005-06-06 23:22:46 UTC
Many applications which support templates, have a specific extension for
template files. For instance, OO.o Impress has the .sti extension for templates,
and .sxi for presentations. 

I like to save a few templates into my ~/Templates folder to be able to quickly
create new files from templates. However when I create a new document from an
.sti file that resides in the templates folder, a new file is created with the
.sti extension. The desired behaviour would be that a .sxi file is created.
Therefore I propose an automagical mapping between template- and non-template
extensions or mime types.
Comment 1 Christian Neumair 2005-07-11 14:48:11 UTC
Thanks for your bug report!
We'd have to special-case various template formats. Does OOo have any more of them?
Comment 2 Reinout van Schouwen 2005-07-11 15:31:18 UTC
oowriter: .stw; oocalc: .stc; ooimpress: .sti; oodraw: .std

Of course, not only OOo templates should be supported, but gnome-office (.awt),
ms office (.dot, .pot, ...), old staroffice (.vor), koffice (.???), OpenDocument
(.ott, .oth, .otg, .otp, .ots), WordPerfect (.wpt) etc. templates as well.
Comment 3 Christian Neumair 2005-07-11 16:59:01 UTC
Created attachment 48967 [details] [review]
Proposed patch against HEAD.

Maybe you could check the mapping and tell me if it lacks any common formats?
I've ommitted word since according to some website I found doc doesn't match
dot semantically.
Comment 4 Reinout van Schouwen 2005-07-11 18:17:05 UTC
let's see...
KPresenter: .kpt => .kpr
KSpread: .kst => .ksp
KWord: .kwt => .kwd

PowerPoint: .pot (or is that also semantically wrong? - note the conflict with
gettext .pot templates, maybe we need some mime type magic here)

One important addition would be the possibility for applications to register a
template extension mapping with nautilus in some way. We can't possibly be
exhaustive here.
Comment 5 Christian Neumair 2005-07-11 19:50:09 UTC
While we're at it, we could optionally add providers which convert templates to
documents, because - as we mentioned - they diverge semantically for some
formats. Seriously, I think an application registry would really be overhead.
The MIME check for .pot is in scope, though.
Comment 6 Reinout van Schouwen 2006-01-07 16:42:06 UTC
As a temporary solution this would be nice to have for 2.14. But I _do_ still think that such a registry is the Right Solution (TM). :-)
Comment 7 Reinout van Schouwen 2007-08-03 09:59:36 UTC
Christian, any chance you could get this in for 2.20?
Comment 8 Praveen Thirukonda 2009-11-21 19:55:11 UTC
Not to sound rude but This patch hasn't been looked at for 2 years. It would be nice to have this feature.
Comment 9 André Klapper 2015-01-17 02:12:00 UTC
Comment on attachment 48967 [details] [review]
Proposed patch against HEAD.

$:andre\> patch --no-backup-if-mismatch -p0 < patch 
patching file libnautilus-private/nautilus-file-operations.c
Hunk #1 succeeded at 6292 with fuzz 1 (offset 3917 lines).
Hunk #2 FAILED at 2453.
1 out of 2 hunks FAILED -- saving rejects to file libnautilus-private/nautilus-file-operations.c.rej

Hence setting 'needs-rework' as patch does not apply cleanly.
Comment 10 André Klapper 2015-01-17 02:13:25 UTC
Comment on attachment 48967 [details] [review]
Proposed patch against HEAD.

$:andre\> patch --no-backup-if-mismatch -p0 < patch 
patching file libnautilus-private/nautilus-file-operations.c
Hunk #1 succeeded at 6331 with fuzz 1 (offset 3956 lines).
Hunk #2 FAILED at 2453.
1 out of 2 hunks FAILED -- saving rejects to file libnautilus-private/nautilus-file-operations.c.rej

Hence setting 'needs-rework' as patch does not apply cleanly.
Comment 11 André Klapper 2021-06-18 15:28:54 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version of Files (nautilus), then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new ticket at
  https://gitlab.gnome.org/GNOME/nautilus/-/issues/

Thank you for your understanding and your help.