diff --git a/main.ts b/main.ts index a0a15fb..9716ea6 100644 --- a/main.ts +++ b/main.ts @@ -1,6 +1,6 @@ import { App, Editor, Notice, Plugin, PluginSettingTab, Setting } from 'obsidian'; -interface HeaderDisplayTextSettings { +interface AnchorDisplayTextSettings { includeNoteName : string; whichHeadings: string; includeNotice: boolean; @@ -8,7 +8,7 @@ interface HeaderDisplayTextSettings { sep : string; } -const DEFAULT_SETTINGS: HeaderDisplayTextSettings = { +const DEFAULT_SETTINGS: AnchorDisplayTextSettings = { includeNoteName: 'headersOnly', whichHeadings: 'allHeaders', includeNotice: false, @@ -16,13 +16,13 @@ const DEFAULT_SETTINGS: HeaderDisplayTextSettings = { sep: ' ' } -export default class HeaderDisplayText extends Plugin { - settings: HeaderDisplayTextSettings; +export default class AnchorDisplayText extends Plugin { + settings: AnchorDisplayTextSettings; async onload() { await this.loadSettings(); - this.addSettingTab(new HeaderDisplayTextSettingTab(this.app, this)); + this.addSettingTab(new AnchorDisplayTextSettingTab(this.app, this)); // look for header link creation this.registerEvent( @@ -77,10 +77,10 @@ export default class HeaderDisplayText extends Plugin { } -class HeaderDisplayTextSettingTab extends PluginSettingTab { - plugin: HeaderDisplayText; +class AnchorDisplayTextSettingTab extends PluginSettingTab { + plugin: AnchorDisplayText; - constructor(app: App, plugin: HeaderDisplayText) { + constructor(app: App, plugin: AnchorDisplayText) { super(app, plugin); this.plugin = plugin; } diff --git a/manifest.json b/manifest.json index ab8d394..8b4c3b0 100644 --- a/manifest.json +++ b/manifest.json @@ -1,10 +1,10 @@ { - "id": "header-display-text", - "name": "Header Display Text", + "id": "anchor-display-text", + "name": "anchor Display Text", "version": "0.2.0", "minAppVersion": "0.15.0", - "description": "Automatically uses linked headers as the display text for the link.", - "author": "Robert Arsenault", + "description": "Automatically uses the linked heading as the display text for the anchor links.", + "author": "Robert C Arsenault", "authorUrl": "https://github.com/rca-umb", "isDesktopOnly": false } diff --git a/package.json b/package.json index 1584e30..c932545 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { - "name": "header-display-text-plugin", + "name": "anchor-display-text-plugin", "version": "0.2.0", - "description": "Plugin for Obsidian (https://obsidian.md) that sets the display text of linked headers to the name of the header.", + "description": "Plugin for Obsidian (https://obsidian.md) that sets the display text of anchor links to the name of the heading.", "main": "main.js", "scripts": { "dev": "node esbuild.config.mjs",