pre-2.2.8

This commit is contained in:
zsviczian
2024-07-04 20:15:33 +02:00
parent 325bfd825f
commit 4a430f5fe7
43 changed files with 2477 additions and 1729 deletions

View File

@@ -6,6 +6,11 @@ export class InsertCommandDialog extends FuzzySuggestModal<TFile> {
public app: App;
private addText: Function;
destroy() {
this.app = null;
this.addText = null;
}
constructor(app: App) {
super(app);
this.app = app;
@@ -32,10 +37,16 @@ export class InsertCommandDialog extends FuzzySuggestModal<TFile> {
onChooseItem(item: any): void {
const cmdId = item?.id;
this.addText(`⚙️[${item.name}](cmd://${item.id})`);
this.addText = null;
}
public start(addText: Function) {
this.addText = addText;
this.open();
}
onClose(): void {
this.addText = null;
super.onClose();
}
}