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:
AlexKucera committed 2025-08-29 16:23:28 +02:00
1 parent 57c155d7cd
commit a3c430183e
7 files changed
+2933 -32

No files matched your search

+4 -4
View File
@@ -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!');
});