From 1a7238ca4b6390d6d302fa735e527f6f114caab8 Mon Sep 17 00:00:00 2001 From: gapmiss <98914514+gapmiss@users.noreply.github.com> Date: Mon, 12 May 2025 16:05:51 -0500 Subject: [PATCH] addCommand icons --- src/main.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.ts b/src/main.ts index 1dcfafb..5764b84 100644 --- a/src/main.ts +++ b/src/main.ts @@ -73,6 +73,7 @@ export default class InlineCalloutsPlugin extends Plugin { this.addCommand({ id: "new-inline-callout", name: "New inline callout", + icon: "form-input", editorCallback: (editor) => { let modal = new NewInlineCalloutModal(this, editor); modal.open(); @@ -83,6 +84,7 @@ export default class InlineCalloutsPlugin extends Plugin { this.addCommand({ id: "modify-inline-callout", name: "Modify inline callout", + icon: "form-input", editorCheckCallback: (checking, editor, view: MarkdownView) => { let res = this.checkContextType(editor, view); if (res) { @@ -99,6 +101,7 @@ export default class InlineCalloutsPlugin extends Plugin { this.addCommand({ id: "search-inline-callouts", name: "Search for inline callouts", + icon: "text-search", callback: () => { let modal = new SearchInlineCalloutsModal(this); modal.open();