mirror of
https://github.com/groldsf/obsidian_check_plugin.git
synced 2026-07-22 12:00:31 +00:00
miniref. delete clickEvent
This commit is contained in:
parent
13ab4da8e7
commit
d3e7b14593
2 changed files with 1 additions and 13 deletions
|
|
@ -1,22 +1,14 @@
|
|||
import { Mutex } from "async-mutex";
|
||||
import { Editor, EditorChange, MarkdownFileInfo, MarkdownView, TFile } from "obsidian";
|
||||
import CheckboxSyncPlugin from "./main";
|
||||
import { Mutex } from "async-mutex";
|
||||
import MultiMap from "./utils/MultiMap";
|
||||
import clickEvent from "./events/ClickEvent";
|
||||
|
||||
export default class SyncController {
|
||||
private plugin: CheckboxSyncPlugin;
|
||||
private mutex: Mutex;
|
||||
|
||||
private clickEvents: MultiMap<string, clickEvent>;
|
||||
constructor(plugin: CheckboxSyncPlugin) {
|
||||
this.plugin = plugin;
|
||||
this.mutex = new Mutex();
|
||||
this.clickEvents = new MultiMap();
|
||||
}
|
||||
|
||||
addClickEvent(event: clickEvent) {
|
||||
this.clickEvents.add(event.filePath, event);
|
||||
}
|
||||
|
||||
async syncEditor(editor: Editor, info: MarkdownView | MarkdownFileInfo) {
|
||||
|
|
|
|||
|
|
@ -1,4 +0,0 @@
|
|||
export default interface clickEvent {
|
||||
filePath: string;
|
||||
line: number;
|
||||
}
|
||||
Loading…
Reference in a new issue