mirror of
https://github.com/zadam/trilium.git
synced 2025-11-11 15:55:52 +01:00
refactor(code/find): integrate search into find plugin
This commit is contained in:
@@ -181,9 +181,6 @@ export default class CodeMirror extends EditorView {
|
||||
await new Promise(requestAnimationFrame);
|
||||
const instance = this.plugin(plugin);
|
||||
instance?.searchFor(searchTerm, matchCase, wholeWord);
|
||||
if (instance) {
|
||||
instance.scrollToMatchNearestSelection();
|
||||
}
|
||||
|
||||
return {
|
||||
totalFound: instance?.totalFound ?? 0,
|
||||
|
||||
Reference in New Issue
Block a user