Initial Setup
Sets up the basic structure for an Obsidian plugin designed to export notes to Typst-generated PDFs. This commit includes: - Initial plugin manifest and configuration. - Placeholder plugin class and settings. - Basic .gitignore to exclude common files. - Claude.md file to guide Claude AI on development Task Master is imported for dev workflow.
This commit is contained in:
7 files changed
+2933
-32
No files matched your search
@@ -2,22 +2,22 @@ import { App, Editor, MarkdownView, Modal, Notice, Plugin, PluginSettingTab, Set
|
||||
|
||||
// Remember to rename these classes and interfaces!
|
||||
|
||||
interface MyPluginSettings {
|
||||
interface obsidianTypstPDFExportSettings {
|
||||
mySetting: string;
|
||||
}
|
||||
|
||||
const DEFAULT_SETTINGS: MyPluginSettings = {
|
||||
const DEFAULT_SETTINGS: obsidianTypstPDFExportSettings = {
|
||||
mySetting: 'default'
|
||||
}
|
||||
|
||||
export default class MyPlugin extends Plugin {
|
||||
export default class obsidianTypstPDFExport extends Plugin {
|
||||
settings: MyPluginSettings;
|
||||
|
||||
async onload() {
|
||||
await this.loadSettings();
|
||||
|
||||
// This creates an icon in the left ribbon.
|
||||
const ribbonIconEl = this.addRibbonIcon('dice', 'Sample Plugin', (evt: MouseEvent) => {
|
||||
const ribbonIconEl = this.addRibbonIcon('dice', 'Typst PDF Export', (evt: MouseEvent) => {
|
||||
// Called when the user clicks the icon.
|
||||
new Notice('This is a notice!');
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user