Skip to content

SearchRelevance.matchesTitle method

SearchRelevance › matchesTitle

Unofficial

Check whether any term of the query matches the file's name.

Signature:

matchesTitle(file: TFile): boolean

Parameters:

ParameterTypeDescription
fileTFileThe file to check.

Returns: boolean — Whether a query term matches the file's basename.