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 687293 - right click / New Document / Empty Document option not present by default
right click / New Document / Empty Document option not present by default
Status: RESOLVED DUPLICATE of bug 683735
Product: nautilus
Classification: Core
Component: File and Folder Operations
3.6.x
Other Linux
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-10-31 21:46 UTC by Lori Holden
Modified: 2013-01-29 23:39 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Lori Holden 2012-10-31 21:46:22 UTC
When no templates are defined, the right click / New Document / Empty Document menu is not present.

Steps to recreate:

1) rm -rf ~/Templates/*
2) In a Nautilus window, right click. 
3) New Document is not present.

If you create a new template, then you end up getting a "Empty Document" under the New Document menu along with whatever template you have defined.

1) touch ~/Templates/random_name
2) In a Nautilus window, right click. 
3) You now have a New Document option, and under that a "random_name" and an "Empty Document" option.

Having the New Document / Empty Document entry is very desirable by default and used to be present in previous versions of Nautilus.

More desirable would be moving the "Empty Document" down into the root right click context menu next to New Folder when no templates are defined.
Comment 1 Peter 2013-01-02 15:38:18 UTC
Hello!
The ability to create an empty file is the UI counterpart of "touch file.extensions" and provided by every file-manager. Nautilus should not need a empty template for this, especially because their is absolutley no gurantee that the "~/Templates" is even existing and used. We also don't need a template for "New folder".

Typicall use case:
1. Right click in Nautilus
2. Create empty file "gtktest.c"
3. Double-Click and appropriate program opens the file with syntax-highlighting

See also:
http://www.webupd8.org/2012/11/add-new-empty-file-entry-to-nautilus-36.html
https://wiki.archlinux.org/index.php/Nautilus#Nautilus_3.6_create_an_empty_document
https://bugzilla.gnome.org/show_bug.cgi?id=687139 # says "empty file shouldn't been given" if a template exists

Proposal:
Nautilus should just bring back the old behaviour and always offer "Create empty file", independent from "~/Templates".

Thank you

Don't take this as attack, but this is one of this typically bugs which causes all the attacks and flames about GNOME, because a basic and major feature was removed.
Comment 2 Peter 2013-01-02 15:40:58 UTC
Even the author of world-of-gnome gets confused:
http://worldofgnome.org/how-to-create-an-empty-document-in-files/
Comment 3 António Fernandes 2013-01-29 23:39:14 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.

Related reports with some background and rationale on this topic: bug 324253, bug 676838, bug 683735, and bug 687139

*** This bug has been marked as a duplicate of bug 683735 ***