Renames plugin to "Typst PDF Export"
Updates the plugin's name from "Obsidian Typst PDF Export" to "Typst PDF Export". This change simplifies the plugin's identifier and display name, making it more concise and user-friendly. It involves updates to the manifest file, plugin configuration, and references within the codebase.
This commit is contained in:
8 files changed
+17
-17
No files matched your search
@@ -130,11 +130,11 @@ export class PdfToImageConverter {
|
||||
// Try multiple strategies to find the plugin directory
|
||||
const possiblePluginDirs = [
|
||||
// Strategy 1: From process.cwd() if it's in the vault
|
||||
path.join(process.cwd(), '.obsidian', 'plugins', 'obsidian-typst-pdf-export'),
|
||||
path.join(process.cwd(), '.obsidian', 'plugins', 'typst-pdf-export'),
|
||||
// Strategy 2: Assuming we're running from vault root
|
||||
path.join('.obsidian', 'plugins', 'obsidian-typst-pdf-export'),
|
||||
path.join('.obsidian', 'plugins', 'typst-pdf-export'),
|
||||
// Strategy 3: Direct path if running in development
|
||||
'/Users/alex/Obsidian/Dev/.obsidian/plugins/obsidian-typst-pdf-export'
|
||||
'/Users/alex/Obsidian/Dev/.obsidian/plugins/typst-pdf-export'
|
||||
];
|
||||
|
||||
// Find the first directory that exists and has node_modules
|
||||
|
||||
@@ -7,7 +7,7 @@ import { PLUGIN_DIRS } from './constants';
|
||||
export interface TempDirectoryOptions {
|
||||
/** Base path for the vault */
|
||||
vaultPath: string;
|
||||
/** Plugin directory name (defaults to 'obsidian-typst-pdf-export') */
|
||||
/** Plugin directory name (defaults to 'typst-pdf-export') */
|
||||
pluginName?: string;
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ export class TempDirectoryManager {
|
||||
|
||||
constructor(options: TempDirectoryOptions) {
|
||||
this.vaultPath = options.vaultPath;
|
||||
this.pluginName = options.pluginName || 'obsidian-typst-pdf-export';
|
||||
this.pluginName = options.pluginName || 'typst-pdf-export';
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -16,7 +16,7 @@ export class TemplateManager {
|
||||
// Templates are stored in the plugin directory
|
||||
this.templatesPath = path.join(
|
||||
(this.plugin.app.vault.adapter as any).basePath,
|
||||
'.obsidian/plugins/obsidian-typst-pdf-export/templates'
|
||||
'.obsidian/plugins/typst-pdf-export/templates'
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -123,7 +123,7 @@ export class TypographySection implements ModalSection {
|
||||
try {
|
||||
// Access the plugin instance through the app
|
||||
// @ts-ignore - accessing private plugin manager
|
||||
const plugin = this.app?.plugins?.plugins?.['obsidian-typst-pdf-export'];
|
||||
const plugin = this.app?.plugins?.plugins?.['typst-pdf-export'];
|
||||
if (plugin && plugin.getCachedFonts) {
|
||||
return await plugin.getCachedFonts();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user