mirror of
https://github.com/zadam/trilium.git
synced 2025-11-09 06:45:49 +01:00
chore(code/find): reintroduce total number of results
This commit is contained in:
@@ -17,6 +17,7 @@ export function createSearchHighlighter(view: EditorView, searchTerm: string, ma
|
||||
|
||||
return ViewPlugin.fromClass(class SearchHighlighter {
|
||||
matches = matcher.createDeco(view);
|
||||
totalFound = this.matches.size;
|
||||
|
||||
constructor(public view: EditorView) { }
|
||||
|
||||
@@ -32,7 +33,8 @@ export function createSearchHighlighter(view: EditorView, searchTerm: string, ma
|
||||
|
||||
static deco = (v: SearchHighlighter) => v.matches;
|
||||
}, {
|
||||
decorations: v => v.matches
|
||||
decorations: v => v.matches,
|
||||
provide: (plugin) => plugin
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user