5124b12 ←1fe03b3antonApr 14, 2026 api

edit main.ts via macOS

M /sublimated/undefined +11 -0
74 unmodified lines
75 this.refreshMetadata();
76 })
77 );
78
79 // refresh metadata after file modifications (xattrs update on sync)
80 this.registerEvent(
81 this.app.vault.on("modify", (file) => {
82 const active = this.app.workspace.getActiveFile();
83 if (active && file.path === active.path) {
84 // delay to let File Provider update xattrs after save
85 setTimeout(() => this.refreshMetadata(), 1000);
86 }
87 })
88 );
89
90 // initial metadata read
91 this.refreshMetadata();
92
93 // welcome modal on first install
199 unmodified lines