From 30a6f963fe6a1a9478db26d0db47062f39422eef Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Tue, 19 Mar 2024 10:50:48 +0100 Subject: Backend: Add open in regex101.com intention (#1210) --- .../java/at/hannibal2/skyhanni/utils/repopatterns/RepoPattern.kt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/main/java/at/hannibal2/skyhanni/utils') diff --git a/src/main/java/at/hannibal2/skyhanni/utils/repopatterns/RepoPattern.kt b/src/main/java/at/hannibal2/skyhanni/utils/repopatterns/RepoPattern.kt index 715c907e4..2e1259343 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/repopatterns/RepoPattern.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/repopatterns/RepoPattern.kt @@ -84,6 +84,11 @@ interface RepoPattern : ReadOnlyProperty { /** * Obtain a reference to a [Pattern] backed by either a local regex, or a remote regex. * Check the documentation of [RepoPattern] for more information. + * + * This method supports "Open regex101.com" using [LivePlugin](https://plugins.jetbrains.com/plugin/7282-liveplugin). + * To use it, install LivePlugin, enable "Run plugins on IDE start" and "Run project specific plugins". + * Now you can use ALT+ENTER while hovering over a [pattern] call using your text cursor to access the "Open in regex101.com" intention. + * Add a KDoc comment to the associated variable containing lines starting with `REGEX-TEST: ` to pre-fill examples. */ fun pattern(key: String, @Language("RegExp") fallback: String): RepoPattern { return RepoPatternManager.of(key, fallback) -- cgit