Jakob Lien26 downloadsReplaces your text as you write, using configurable regexes.
Replaces your text as you write, using configurable regexes.
An obvious use case for this is to expand for example a Jira issue into a link to that issue. The regex need to replace PROJ-123 with [PROJ-123](https://organisation.atlassian.net/browse/PROJ-123) is just:
PROJ-\d+[$0](https://organisation.atlassian.net/browse/$0)The actual matching and replacing is done using Javascripts replace method on your current line, but a few convenience features are added to make it easier to use.
ABCPROJ-123PROJ-1 before you type the second two digits.$0 to reference the entire match directly, so the plugin automatically replaces $0 with what javascript does support, $&.The plugin only replaces as you type, and only on the current line.