Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open Surrealist via URL Schema #288

Closed
1 of 3 tasks
ManAnRuck opened this issue May 20, 2024 · 3 comments · Fixed by #293
Closed
1 of 3 tasks

Open Surrealist via URL Schema #288

ManAnRuck opened this issue May 20, 2024 · 3 comments · Fixed by #293
Labels
feature New feature or request

Comments

@ManAnRuck
Copy link

ManAnRuck commented May 20, 2024

Here is a refined version of your GitHub feature request:


Describe your feature request

Hi,

I would like to request the ability to open the Surrealist app via a URL scheme, such as surrealist://SOME_CONFIGURATION. This feature would streamline the process of launching Surrealist with a specific configuration immediately after starting a database.

In my application, I have a script that could generate this link, allowing me to directly open Surrealist with the correct configuration. This enhancement would significantly improve my development workflow.

Moreover, extending the URL scheme to support parameters like surrealist://SOME_CONFIGURATION?name=CONFIG_NAME&protocol=PROTOCOL&… would enable the creation or modification of connection settings dynamically. This would eliminate the need for individual developers to manually adjust settings, enhancing efficiency and consistency across the team.

EDIT: Maybe SOME_CONFIGURATIONcould be a screen or you have some better ideas ;)

Are you willing to contribute this feature?
Yes, I am willing to contribute to the implementation of this feature.

Related pull request (if applicable)

  • no pr created yet

Depends on

@ManAnRuck ManAnRuck added the feature New feature or request label May 20, 2024
@ManAnRuck ManAnRuck changed the title Open Surrealist via Link Open Surrealist via URL Schema May 20, 2024
@macjuul
Copy link
Contributor

macjuul commented May 21, 2024

This will be possible to implement once support for Tauri 2 is completed (#291)

The current plan is to allow deeplinks to dispatch intents, which are the same actions made available to the command palette. This means you'll be able to deep link to specific views, dialogs, and other actions

@macjuul
Copy link
Contributor

macjuul commented May 24, 2024

I have drafted a PR which implements deeplink support, including opening specific views and dispatching intents. The list of currently available intents can be found here

Just to get a clear picture, you mention passing SOME_CONFIGURATION. I'm not entirely sure what you mean with this. Are you referring to creating connections via deeplinks?

@ManAnRuck
Copy link
Author

Just to get a clear picture, you mention passing SOME_CONFIGURATION. I'm not entirely sure what you mean with this. Are you referring to creating connections via deeplinks?

Yes, SOME_CONFIGURATION is not the best way to do it I think, but at the end yes. it would be awesome to open a connection without a previous existing configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants