Tankōbon / lib/lookup-query / initialRuleState
Function: initialRuleState()
initialRuleState(
entry,used):object
Defined in: lib/lookup-query.ts:48
What the dialog opens with for a book that has no information: the most recently used rule that reads its file name, with the search it gives, so the user doesn't have to pick it again. When no previous rule fits, the latest one is still shown (and the search is the plain file name).
Parameters
entry
used
readonly string[]
Returns
object
query
query:
MetadataQuery
rule
rule:
string