diff --git a/README.md b/README.md index 91279d1..bdbecb6 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Automatic Linker +# 🪄 Automatic Linker 🔮 Automatically convert plain text file references into Obsidian wiki links as you write. Keep your knowledge graph connected without manual linking. diff --git a/src/main.ts b/src/main.ts index 64c5238..aba177c 100644 --- a/src/main.ts +++ b/src/main.ts @@ -146,7 +146,7 @@ export default class AutomaticLinkerPlugin extends Plugin { const editor = this.getEditor(); if (!editor) return; - let fileContent = editor.getValue(); + const fileContent = editor.getValue(); const oldText = fileContent; const newText = this.modifyLinks(fileContent, activeFile.path); updateEditor(oldText, newText, editor); @@ -342,6 +342,7 @@ export default class AutomaticLinkerPlugin extends Plugin { this.addCommand({ id: "format-file", name: "Format file", + icon: "wand-sparkles", editorCallback: async () => { try { await this.modifyLinksForActiveFile(); @@ -354,6 +355,7 @@ export default class AutomaticLinkerPlugin extends Plugin { this.addCommand({ id: "format-vault", name: "Format vault", + icon: "drill", editorCallback: async () => { try { await this.modifyLinksForVault(); @@ -366,6 +368,7 @@ export default class AutomaticLinkerPlugin extends Plugin { this.addCommand({ id: "rebuild-index", name: "Rebuild index", + icon: "refresh-ccw", editorCallback: async () => { try { this.refreshFileDataAndTrie();