ssh uri handler is not able to cd to specific folder specified as part of the url

  • 3.1 beta3
  • 10.12.5

I was trying to make the URI/URL handler to catch ssh:// hyperlinks and it works with one important remark: i was not able to make it change current directory, it did always started using default folder (home of user).

open ssh://user@hostname/path

I tried with double and triple slashes, also tried using "cd PATH" as "send text to terminal", based on the docs but the variable was not expanded so I got an error trying to "cd PATH" instead of having iterm replacing the path part of the uri.

This is key issue because I want to add hyperlinks on the build system and starting connection in the right folder is essential. In the end I do not even care how the path is sent because I can control the format of the hyperlinks.

The RFC specifies the url as being abs_path: https://tools.ietf.org/html/draft-ietf-secsh-scp-sftp-ssh-uri-01#section-1.1 so either this part was not implmented or is kinda broken.

Edited by Sorin Sbarnea