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

[feature request] URL handler #306

Open
nlemoine opened this issue Mar 12, 2024 · 6 comments
Open

[feature request] URL handler #306

nlemoine opened this issue Mar 12, 2024 · 6 comments

Comments

@nlemoine
Copy link

Hi,

I'm missing a URL handler to open Medis from a URL (DSN), such as:

medis://user@host:port

It's really useful to be able to quickly open and connect to a Redis database.

See for Electron based app:
https://github.com/RedisInsight/RedisInsight/blob/65b886100f1436d82710985df2bd2eda6c46aa96/tests/e2e/tests/web/critical-path/url-handling/url-handling.e2e.ts#L25-L51

@nlemoine
Copy link
Author

Another great example from Sequel Ace: Sequel-Ace/Sequel-Ace#108

@luin
Copy link
Owner

luin commented Mar 12, 2024

Thanks for the feedback @nlemoine !

What's the use case of the URL handler? I'm thinking about whether we should support medis:// or redis://?

@nlemoine
Copy link
Author

nlemoine commented Mar 12, 2024

What's the use case of the URL handler?

The ability to have links in UIs (can be a browser, a terminal, basically anything that prints cilckable links) that directly opens your default [service] client (mysql, redis, etc.) and connects without having to fill the connection details manually.

My personal use is for a Docker extension/project dashboard (since Redis port is mapped in a different port in the container, it often changes, I can't bookmark a favorite with a fixed port) where I can dynamically build a link to open my favorite UI client so I can have all my tool available one click away.

I'm thinking about whether we should support medis:// or redis://?

I have no strong recommandation here. I don't think there's a standard on this and I'm not aware of how other Redis clients behaves (besides Redis Insights but I'd rather stick to Medis ;)).

You can find kind of standard (at least widely used) DSN for Redis here:
https://symfony.com/doc/current/components/cache/adapters/redis_adapter.html#configure-the-connection

The idea that you can get your link directly from your env vars is pretty nice.

Thanks for considering this 🙏 Let me know when this happens :)

@luin
Copy link
Owner

luin commented Mar 24, 2024

Just released (MAS version may take a couple of days to get reviewed): https://docs.getmedis.com/reference/custom-url-scheme. Please feel free to let me know in case there are any issues.

@nlemoine
Copy link
Author

Thanks a lot! This works like a charm 🙂

Any chance you might handle ssh remote connection? (Sequel Ace like)

@luin
Copy link
Owner

luin commented Apr 9, 2024

Actually let's keep this open until ssh remote connection is supported

@luin luin reopened this Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants