update settings interface name of the plugin

This commit is contained in:
Oleg 2022-09-03 11:39:57 +03:00
parent 2feb33fbd1
commit de61116421
2 changed files with 5 additions and 7 deletions

View File

@ -10,14 +10,14 @@ import {
} from './src/services/file.service';
import { createPreviewElement } from './src/components/PreviewElement';
interface MyPluginSettings {
interface BulkRenamePluginSettings {
folderName: string;
fileNames: TFile[];
existingSymbol: string;
replacePattern: string;
}
const DEFAULT_SETTINGS: MyPluginSettings = {
const DEFAULT_SETTINGS: BulkRenamePluginSettings = {
folderName: '',
fileNames: [],
existingSymbol: '',
@ -25,14 +25,11 @@ const DEFAULT_SETTINGS: MyPluginSettings = {
};
class BulkRenamePlugin extends Plugin {
settings: MyPluginSettings;
settings: BulkRenamePluginSettings;
async onload() {
await this.loadSettings();
this.addSettingTab(new BulkRenameSettingsTab(this.app, this));
// this.app.vault.on('rename', (file, oldPath) => {
// });
}
onunload() {}

View File

@ -8,7 +8,8 @@
"build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production",
"test": "jest ./src",
"test:watch": "jest ./src --watch",
"version": "node version-bump.mjs && git add manifest.json versions.json && git push origin --tags"
"version": "node version-bump.mjs && git add manifest.json versions.json && git push origin --tags",
"tags": "git push origin --tags"
},
"keywords": [],
"author": "",