mirror of
https://github.com/sgranade/manuscriptum.git
synced 2026-07-22 06:43:11 +00:00
chore: Rename plugin to "Manuscriptum".
This commit is contained in:
parent
6ec674e801
commit
777e808cb2
4 changed files with 18 additions and 18 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"id": "manuscripten",
|
||||
"name": "Manuscripten",
|
||||
"id": "manuscriptum",
|
||||
"name": "Manuscriptum",
|
||||
"version": "x.x.x",
|
||||
"minAppVersion": "1.5.7",
|
||||
"description": "Obsidian plugin to create .docx files that contain story and novel manuscripts for submission to magazines or agents.",
|
||||
|
|
|
|||
6
package-lock.json
generated
6
package-lock.json
generated
|
|
@ -1,11 +1,11 @@
|
|||
{
|
||||
"name": "manuscripten",
|
||||
"version": "0.0.1",
|
||||
"name": "manuscriptum",
|
||||
"version": "0.1.0",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "manuscripten",
|
||||
"name": "manuscriptum",
|
||||
"version": "0.0.1",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "manuscripten",
|
||||
"version": "0.0.1",
|
||||
"name": "manuscriptum",
|
||||
"version": "0.1.0",
|
||||
"description": "Obsidian plugin to create .docx files that contain story and novel manuscripts for submission to magazines or agents.",
|
||||
"license": "MIT",
|
||||
"author": {
|
||||
|
|
|
|||
22
src/main.ts
22
src/main.ts
|
|
@ -28,26 +28,26 @@ import { downloadsFolder } from "./downloadsFolder";
|
|||
import { ConfirmModal } from "./obsidianComponents";
|
||||
import { folderNameToDocxOutfileName } from "./utilities";
|
||||
|
||||
interface ManuscriptenSettings {
|
||||
interface ManuscriptumSettings {
|
||||
authorName: string;
|
||||
authorSurname: string;
|
||||
authorContactInformation: string;
|
||||
outputDir: string;
|
||||
}
|
||||
|
||||
const DEFAULT_SETTINGS: Partial<ManuscriptenSettings> = {
|
||||
const DEFAULT_SETTINGS: Partial<ManuscriptumSettings> = {
|
||||
outputDir: downloadsFolder(),
|
||||
};
|
||||
|
||||
export default class ManuscriptenPlugin extends Plugin {
|
||||
settings: ManuscriptenSettings;
|
||||
export default class ManuscriptumPlugin extends Plugin {
|
||||
settings: ManuscriptumSettings;
|
||||
|
||||
async onload() {
|
||||
await this.loadSettings();
|
||||
|
||||
this.addSettingTab(new ManuscriptenSettingTab(this.app, this));
|
||||
this.addSettingTab(new ManuscriptumSettingTab(this.app, this));
|
||||
|
||||
this.addEnmanuscriptContextMenuItems();
|
||||
this.addManuscriptumContextMenuItems();
|
||||
|
||||
this.addManuscriptumCommands();
|
||||
}
|
||||
|
|
@ -85,9 +85,9 @@ export default class ManuscriptenPlugin extends Plugin {
|
|||
}
|
||||
|
||||
/**
|
||||
* Add enmanuscript items to the file pane context menu for notes and folders.
|
||||
* Add items to the file pane context menu for notes and folders.
|
||||
*/
|
||||
addEnmanuscriptContextMenuItems() {
|
||||
addManuscriptumContextMenuItems() {
|
||||
this.registerEvent(
|
||||
this.app.workspace.on("file-menu", (menu, file) => {
|
||||
if (
|
||||
|
|
@ -329,10 +329,10 @@ export default class ManuscriptenPlugin extends Plugin {
|
|||
}
|
||||
}
|
||||
|
||||
class ManuscriptenSettingTab extends PluginSettingTab {
|
||||
plugin: ManuscriptenPlugin;
|
||||
class ManuscriptumSettingTab extends PluginSettingTab {
|
||||
plugin: ManuscriptumPlugin;
|
||||
|
||||
constructor(app: App, plugin: ManuscriptenPlugin) {
|
||||
constructor(app: App, plugin: ManuscriptumPlugin) {
|
||||
super(app, plugin);
|
||||
this.plugin = plugin;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue