TemplateSelectionState

data class TemplateSelectionState(    val startPosition: Int,     val templatePrefix: String,     val candidateExpansions: List<String>)

The state of an ongoing template selection.

Constructors

Link copied to clipboard
fun TemplateSelectionState(    startPosition: Int,     templatePrefix: String,     candidateExpansions: List<String>)

Properties

Link copied to clipboard
val candidate: String

The current candidate.

Link copied to clipboard
val candidateExpansions: List<String>

The candidate template expansions available for selection.

Link copied to clipboard
var candidateIndex: Int = 0

The index of the active candidate template expansion.

Link copied to clipboard
var expandingTemplate: Boolean = true

Whether the template expansion algorithm is running.

Link copied to clipboard
val startPosition: Int

The start position of the template expansion site within the document.

Link copied to clipboard
val templatePrefix: String

The alleged prefix of a recognized template.