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 762774 - Create new file
Create new file
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: File and Folder Operations
3.18.x
Other Linux
: Normal major
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-02-27 14:44 UTC by vendforce
Modified: 2016-03-07 20:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
new-file: new document just shows teamplate name (1.41 KB, patch)
2016-03-01 23:04 UTC, Ricard Gascons
reviewed Details | Review
nautilus-file-operations.c: new files from template no longer begin with "Untitled" (1.44 KB, patch)
2016-03-02 15:04 UTC, Ricard Gascons
committed Details | Review

Description vendforce 2016-02-27 14:44:27 UTC
When you create a file in /home/Templates/textfile
it ends up being called untitled textfile why can't it remain as it was created
instead of the user having to rename it twice  i.e create a file called worksheets.doc and then when you right click and create a new file its called
untitled worksheets.doc so I have to rename it again wtf !!!! its so annoying


I want to be able to create various textfile templates and right click and produce it ready to go instead of having to rename a file I already named 


I create a textfile in templates called textfile and the one on the right is the one I created when I right clicked create a new file in the image below 

http://postimg.org/image/9fpvl0uqj/
Comment 1 vendforce 2016-02-27 14:48:48 UTC
It ridiculous, new file created "untitled worksheets.doc" its not fucking untitled I fucking called it worksheets.doc, thats the bloody title,god damn it !
Comment 2 Ricard Gascons 2016-03-01 23:04:53 UTC
Created attachment 322808 [details] [review]
new-file: new document just shows teamplate name

When a new document is created using a template, the word "Untitled"
is displayed in front of the template name. For example,
creating a new document with a template called "document.doc"
will create new file named "Untitled document.doc".

This is obviusly a non-practical use of templates and this patch
aims to fix this miss-behavior.

The fix is simple, the word "Untitled" has been removed from the
code when a user creates a new document from a template.
Comment 3 Carlos Soriano 2016-03-02 10:44:11 UTC
Review of attachment 322808 [details] [review]:

Thanks for the patch Ricard, looks good to me.
Comment 4 Carlos Soriano 2016-03-02 10:49:17 UTC
Review of attachment 322808 [details] [review]:

Hm actually, the commit message title needs a little work, you need to put the file that you modified, and also you have a typo "teamplate".
Follow these guidelines:
https://wiki.gnome.org/Newcomers/CodeContributionWorkflow#Commit_guidelines
Comment 5 Ricard Gascons 2016-03-02 15:04:47 UTC
Created attachment 322872 [details] [review]
nautilus-file-operations.c: new files from template no longer begin with "Untitled"

When a new document is created using a template, the word "Untitled"
is displayed in front of the template name. For example,
creating a new document with a template called "document.doc"
will create new file named "Untitled document.doc".

This is obviusly a non-practical use of templates and this patch
aims to fix this miss-behavior.

The fix is simple, the word "Untitled" has been removed from the
code when a user creates a new document from a template.
Comment 6 Carlos Soriano 2016-03-06 10:43:16 UTC
Review of attachment 322872 [details] [review]:

LGTM now, thanks!
Comment 7 Carlos Soriano 2016-03-07 20:12:30 UTC
Attachment 322872 [details] pushed as 66c859e - nautilus-file-operations.c: new files from template no longer begin with "Untitled"