Open Cursor in a blank new tab via deeplink

I have been using the deeplink cursor://…. to open Cursor from my web page.

Currently, Im triggering some command in my own Cursor extension by making the deeplink to be cursor://my-extension-id?param=abcxyz. My extension would do some connection setup, then eventually open a Cursor window to work on an instance via SSH-remote.

However, sometimes, when I open the cursor://… deeplink, it would open the most recently opened folder of Cursor. In this case, it would be the remote SSH window. But the SSH connection would fail, due to lacking some setup steps provided by my own Cursor extension.

Is there a way to make the deeplink to BOTH open a blank new Cursor window and still can trigger command in my Cursor extension?

1 Like