diff --git a/manifest.json b/manifest.json index 7eb5987..3a8ce24 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { - "id": "sample-plugin", - "name": "Sample Plugin", + "id": "code-style-keys", + "name": "Code Style Keys", "version": "1.0.0", "minAppVersion": "1.0.0", "description": "Demonstrates some of the capabilities of the Obsidian API.", @@ -8,4 +8,4 @@ "authorUrl": "https://obsidian.md", "fundingUrl": "https://obsidian.md/pricing", "isDesktopOnly": false -} +} \ No newline at end of file diff --git a/src/settings.ts b/src/settings.ts deleted file mode 100644 index 9eae902..0000000 --- a/src/settings.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { App, PluginSettingTab, Setting } from 'obsidian'; -import MyPlugin from './main'; - -export interface MyPluginSettings { - mySetting: string; -} - -export const DEFAULT_SETTINGS: MyPluginSettings = { - mySetting: 'default', -}; - -export class SampleSettingTab extends PluginSettingTab { - plugin: MyPlugin; - - constructor(app: App, plugin: MyPlugin) { - super(app, plugin); - this.plugin = plugin; - } - - display(): void { - const { containerEl } = this; - - containerEl.empty(); - - new Setting(containerEl) - .setName('Settings #1') - .setDesc("It's a secret") - .addText((text) => - text - .setPlaceholder('Enter your secret') - .setValue(this.plugin.settings.mySetting) - .onChange(async (value) => { - this.plugin.settings.mySetting = value; - await this.plugin.saveSettings(); - }), - ); - } -}