I would like to be able to go anywhere (google chrome, sublime text editor, etc), then highlight + right click on some text, then click a custom right-click-menu button which will run a python script with the highlighted text as input. Is there any tool to do this in Ubuntu 14.04+?
I am aware of Nautilus, however Nautilus right-click commands don't seem to show up on google chrome or sublime text editor, and also I am not aware of any way Nautilus can pass highlighted text as input to a python script.
It would be quite useful to have this capacity, as it would let me automate some tedious aspects of my work-flow, so I wonder if there is a right tool for the job?
Thanks in advance!