From 1dfcc8da0af2c92d885ffdd77bdeaf536e8eab71 Mon Sep 17 00:00:00 2001 From: Kodai Nakamura Date: Fri, 12 Dec 2025 23:45:43 +0900 Subject: [PATCH] chore: add icons to commands --- README.md | 2 +- src/main.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) 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();