|angela fbc7007cdd Explicit path referenced||6 months ago|
|img||1 year ago|
|LICENSE||1 year ago|
|README.md||6 months ago|
|Templates.tar.gz||9 months ago|
|automate.sh||9 months ago|
Super easy and light script to automate adding a context menu to Nautilus / Gnome Files to create a new document.
Built in GNOME Nautilus 3.22.3 (current version used in Debian Stable); not tested in other versions (see footer for Nautilus 3.26+).
Any menu item ins interchangable and can be removed.
Run via terminal:
git clone https://github.com/angela-d/nautilus-right-click-new-file.git && cd nautilus-right-click-new-file
Confirm you're in the right directory:
You should see:
img LICENSE automate.sh README.md Templates.tar.gz
Now, run the script:
That's all there is to it!
bash tar -xvzf Templates.tar.gz
(in Nautilus; Open File Manager -> Click Home on the left -> If Templates folder does not exist, create it)
bash xdg-user-dirs-updateto generate the user-dirs config file.
Each of the template files have a prefix like
<?php when you open the file (except the Text file & Writer/Word .doc) - while standard for the script type in question, it is also used so the operating system could interpret the type of file and automatically create the context menu icon without any extra code.
In Nautilus, navigate to the Home directory and then Templates.
In the Templates directory, you can place your dummy files (templates) in folders for easy sorting, or add new ones.
If your changes are not instantaneous, restart Nautilus:
nautilus -q && nautilus &
In some instances, you may have to log out and log back in.
In 3.26, Nautilus will be breaking desktop icons.
To prevent this from occurring, prevent Nautilus from updating (if you've already updated, you'll have to downgrade the pacakge in order for the hold to be effective).
In Debian / Ubuntu (and deriatives):
apt-mark hold nautilus
Note: This will prevent the Nautilus package from updating, you will not receive future bug or security fixes until you undo the hold.
Ubuntu users: Ubuntu 18.04 LTS will be sticking with an older version of Nautilus due to the desktop icons being taken out.