You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our code has ticket references in TODO comments which look like so:
// TODO: [ABC-123] Foo
I want to be able to match ABC-123, highlight it as if it were a URI, and direct people to https://example.com/ABC-123. One more optional case to consider is more specific matching with multiple sub-matches, e.g.:
// TODO: [hello, world] Foo
I want to match both hello and world based on the fact that they're surrounded by TODO: [ ... ]. The regular expression for that would look something like TODO:\s\[(\w+)(,\s\w+)*\]. Ideally, this plugin would treat each group as a separate URI.
There's an old plugin that attempts to handle this, RegExLink, but it's broken in several ways, and its ergonomics are much worse than of OpenUri. Is this in the scope of this plugin?
P.S. Thanks for making this!
The text was updated successfully, but these errors were encountered:
Our code has ticket references in TODO comments which look like so:
// TODO: [ABC-123] Foo
I want to be able to match
ABC-123
, highlight it as if it were a URI, and direct people tohttps://example.com/ABC-123
. One more optional case to consider is more specific matching with multiple sub-matches, e.g.:// TODO: [hello, world] Foo
I want to match both
hello
andworld
based on the fact that they're surrounded byTODO: [ ... ]
. The regular expression for that would look something likeTODO:\s\[(\w+)(,\s\w+)*\]
. Ideally, this plugin would treat each group as a separate URI.There's an old plugin that attempts to handle this, RegExLink, but it's broken in several ways, and its ergonomics are much worse than of OpenUri. Is this in the scope of this plugin?
P.S. Thanks for making this!
The text was updated successfully, but these errors were encountered: