replaceCurrent

fun replaceCurrent(replaceText: String): Boolean(source)

Replace the current match with the given text and move to the next match. The replacement takes the styling at the start of the text it replaces.

Return

true if a replacement was made, false if there is no current match or the editor's input filter refused the replacement, which leaves the match current

Parameters

replaceText

The text to replace with. With useRegex, $1, ${name} and the other group references of Kotlin's Regex.replace are expanded, and \n and \t insert a line break and a tab; see the module docs.