diff options
| author | lishid <[email protected]> | 2020-10-29 18:02:57 -0400 |
|---|---|---|
| committer | lishid <[email protected]> | 2020-10-29 18:02:57 -0400 |
| commit | 6e8aab961694fad6cb36808bce3179ae8fadb831 (patch) | |
| tree | 1b2983b08d0ad01a8a5e447e9a69e3ce9a7dc499 /main.ts | |
| parent | 99f40352142f79017458630581ff4032a8dfd7a3 (diff) | |
| download | ai-pulse-obsidian-plugin-6e8aab961694fad6cb36808bce3179ae8fadb831.tar.gz ai-pulse-obsidian-plugin-6e8aab961694fad6cb36808bce3179ae8fadb831.zip | |
Add more examples for hooks.
Diffstat (limited to 'main.ts')
| -rw-r--r-- | main.ts | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -35,8 +35,14 @@ export default class MyPlugin extends Plugin { this.addSettingTab(new SampleSettingTab(this.app, this));
this.registerEvent(this.app.on('codemirror', (cm: CodeMirror.Editor) => {
- // Modify CodeMirror here...
+ console.log('codemirror', cm);
}));
+
+ this.registerDomEvent(document, 'click', (evt: MouseEvent) => {
+ console.log('click', evt);
+ });
+
+ this.registerInterval(window.setInterval(() => console.log('setInterval'), 5 * 60 * 1000));
}
onunload() {
|
