Skip to content
This repository has been archived by the owner on Feb 26, 2021. It is now read-only.

A bare URL in a routine should open the URL #1902

Open
ianb opened this issue Aug 10, 2020 · 0 comments
Open

A bare URL in a routine should open the URL #1902

ianb opened this issue Aug 10, 2020 · 0 comments

Comments

@ianb
Copy link
Contributor

ianb commented Aug 10, 2020

This is something a person did when creating a routine, making the body of a routine a pair of URLs (separated by commas)

A bare URL pretty clearly means "open", and we could treat it as that. I'm not sure if this would be routine-specific, or if we should just allow URLs as intents generally.

To make URLs be intents, we should probably have [destination:url] (i.e., a URL type). This would be a new kind of matcher, since URLs are best matched by regex and not fixed words. Mostly a URL is something that starts with http:// or https:// – we don't need to support other schemes, and we don't need to parse the URL further (we shouldn't worry about whether the next bit looks like a domain).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant