http://askubuntu.com/a/696901
I copied this from "RobotMan" onI added a new feature to Nautilus with the precious help of the maintainers.
This new feature allow you to map custom keyboard shortcuts to launch the scripts in the scripts folder ( ~/.local/share/nautilus/scripts
).
So, when you add an executable in that folder it will appear in the right-click context menu, but now if you create a special configuration file ( ~/.config/nautilus/scripts-accels
) you can assign a shortcut to it.
For example make a script called Terminal
with the following content: