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

Displayed patterns should be anchored if not regexps. #24

Open
GLundh opened this issue Oct 25, 2019 · 7 comments
Open

Displayed patterns should be anchored if not regexps. #24

GLundh opened this issue Oct 25, 2019 · 7 comments
Labels
enhancement New feature or request

Comments

@GLundh
Copy link
Member

GLundh commented Oct 25, 2019

Typical use case:

User A: Hey, what's the long complex link for service xyz?
User B: Hmm.. I think it is in our goalie service.. Let me check.
User B finds the link by searching in Goalie. But only the target is clickable. What User B really wants is to easily share the goalie vanity url, to make it easier for User A to find the link in the future and to spread awareness about goalie.

@GLundh GLundh added the enhancement New feature or request label Oct 25, 2019
@AntonFriberg
Copy link
Collaborator

So what you would want is an icon for "Copy to Clipboard" that inserts the entire vanity url to clipboard?

@GLundh
Copy link
Member Author

GLundh commented Oct 25, 2019

That would be cool. Though making it an anchor link is fine too. I can then right click -> copy if I want it in the clipboard..

Regexps patterns are not really vanity urls or linkable, so those should probably be just text (like today).

@AntonFriberg
Copy link
Collaborator

So something like this?

image

@GLundh
Copy link
Member Author

GLundh commented Oct 25, 2019

Exactly like that.

@AntonFriberg
Copy link
Collaborator

What about using something like this to create strings that match the regex? This would make anchor links possible for any pattern. https://fent.github.io/randexp.js/

@GLundh
Copy link
Member Author

GLundh commented Oct 25, 2019

:D Awesome. But can you control the length on it? So we get decently short urls out of it?

@AntonFriberg
Copy link
Collaborator

Yes! The length could be exposed as a configurable environment variable.
https://github.com/fent/randexp.js#default-range

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

No branches or pull requests

2 participants