Skip to content

charton API


charton API / @chart-on/ui / index / commandScore

Function: commandScore() ​

commandScore(entry, query): number | null

Defined in: ui/src/command-palette-model.ts:100

How well entry matches query: lower is better, null for no match. The whole query is tried first; a query of several words also matches when every word does, scored by its worst word.

Parameters ​

entry ​

CommandEntry

query ​

string

Returns ​

number | null