URI Handling diretory and files
Brought to you by:
realh
My suggestion.
Maybe is cool if I could set an app that opens when ctrl+click in dir path (/home/bla/) and other when ctrl+click in file path (/home/bla/.bashrc), like currently http:// opens web browser and bla@ble opens email client.
Or generalize this, where user can set regexp and action.
Thanks ;)
Anonymous
My contact info =)
hugosenari (at) gmail
It already matches file:// URIs so it would be a good idea to provide an option to open these eg in nautilus. Unfortunately matching filenames without file:// would probably be too vague. There might be too many false positives and/or have to miss names without a leading / and there have been performance issues with VTE's regex matching in the past.
I've implemented this and it's available in git. The URI has to include a file:// as I explained before. Nautilus can't open files from the command line so I've made it open the parent directory if you click on a URI for a file. I hope that's OK.
I've improved it now. You can specify different behaviour for files and directories and it doesn't need the file:// prefix any more. It will match filenames starting with / , ./ , ../ or ~/ but not ~user/ and it can't handle certain characters eg spaces.
I found it a little distracting so from now on it will be optional. To enable it look in the profile's "File URIs" section.
The requested feature has been added.