Skip to content
This repository was archived by the owner on Jun 26, 2025. It is now read-only.

Commit bf6b597

Browse files
committed
feat: improve snippet existence notice and update creation confirmation message
1 parent 9ec2506 commit bf6b597

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,14 @@ class CssSnippetStoreModal extends Modal {
122122

123123
// Check if file already exists
124124
if (await adapter.exists(fullPath)) {
125-
new Notice(`Snippet "${fileName}" already exists.`);
125+
new Notice(`Snippet with id "${fileName}" already exists.`);
126126
return;
127127
}
128128

129129
// Write default content to the CSS snippet
130130
await vault.create(fullPath, code);
131131

132-
new Notice(`Snippet "${fileName}" created in .obsidian/snippets.`);
132+
new Notice(`Snippet "${fileName}" installed`);
133133
} catch (err) {
134134
console.error('Failed to create snippet:', err);
135135
new Notice('Failed to create snippet. See console for details.');

0 commit comments

Comments
 (0)