This quick tip shows how to add ‘New Document‘ menu option in the default Nautilus file browser context menu in Ubuntu 19.10.
Open Files from the left dock panel, and you’ll find there’s a file folder called Templates.
Go to that folder, and you’ll see a prompt says ‘Put files in this folder to use them as templates for new documents‘
Yes, all you need to do is create an empty file in the folder with a filename as you want.
1. Open terminal either from application menu or by pressing Ctrl+Alt+T on keyboard.
2. Now create an empty file in the Templates folder.
Copy and paste the command in terminal and hit run:
touch ~/Templates/Untitled\ Document
This command creates a file named Untitled Document. You can change it to whatever as you want. NOTE that ‘\‘ is required in the command before the blank space in the filename.
3. Finally open file browser and right-click on blank area to create new documents.
You’ll see the ‘New Document’ option once you created the file in step 2.
That’s it. Enjoy!