Nautilus – Add Context Menu Option to Create New File

gnomenautilus

I use Nautilus 3.10.1 on Trisquel 7.0 GNU/Linux. In context menu, there is no such option like create new file/document. So, I want to add such an option (which may work like that of existing option: New folder).

Further I am also interested in featuring options like: New Writer Document, New Calc Document, etc.

Best Answer

Access Nautilushelp (click on Files on top bar then select Help) and then navigate to Tips and questions > Templates for commonly-used document types:

screen-shot

There is something missing from the documentation: you have to add your Templates location to your xdg-user-dirs, e.g. if you set your templates dir as ~/Templates you'll have to add the following line

XDG_TEMPLATES_DIR="$HOME/Templates"

in ~/.config/user-dirs.dirs.
You then follow the help instructions to create templates (e.g. after placing an empty text file named New Text Document and an empty writer document named New Writer Document in Templates you'll get a new context menu option named New Document which will expand to New Text Document and New Writer Document)