I am trying to find a way to create a shortcut for opening a pdf file with a particular application. This is what i do currently(manually):
Step 1. I have a pdf file say MyBook.pdf. I right click on this pdf so that a popup window appears with many options like:
Cut
Paste
Copy
Open with other application
Move to trash
Step 2. I chose/click Open with other application
from the above menu and a new popup menu opens up with different options like:
Document Viewer
Google Chrome
Text Editor
Sublime Text
Okular
Step 3. I chose Okular
from the above menu and the pdf opens up using Okular.
What i want is that these 3 manual steps should be encapsulated in keyboard shortcut like Ctrl + O + P
Is this possible in Ubuntu 18.04 ?
PS:
I am using nautilus-folder-handler.desktop on Ubuntu 18.04
Summary
I want to be able to select any arbitrary pdf by single left click and then press a custom shortcut key that will open that selected pdf using a particular application such as okular.
I noticed that there is options like Ctrl+C for copying Ctrl+X for moving, Ctrl+I for checking the properties of a file just by a single left click and then pressing the corresponding shortcut. I want to do exactly this. That is the user left clicks one time on a file and then press the shortcut which will open the file with a given application.