Documentation
¶
Overview ¶
Package formula reads the formula being typed in the UI: the reference F4 cycles through absolute markers, and the word and function call around the caret that formula assistance follows. It works on the entry's runes alone.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArgPart ¶
ArgPart maps an argument index to the part of the signature that describes it: a repeating part like "[value2, ...]" covers every argument from its position on. It returns -1 past the last argument.
Types ¶
type Caret ¶
type Caret struct {
Word string
WordStart int
Fn string // e.g. "SUM", or "" outside any function's parentheses
Arg int // index of the argument the caret is in
}
Caret describes the formula text before the caret: the word being typed, if it may be a function, name or sheet, and the innermost function call the caret is in. A sheet name being typed in quotes is a word starting with the quote, e.g. "'Q3 p".