add legacy-peer deps
This commit is contained in:
parent
f7eaba92f7
commit
6a77915ad3
9
main.ts
9
main.ts
|
@ -1,11 +1,4 @@
|
||||||
import {
|
import { App, Plugin, PluginSettingTab, Setting, TFile } from 'obsidian';
|
||||||
App,
|
|
||||||
Notice,
|
|
||||||
Plugin,
|
|
||||||
PluginSettingTab,
|
|
||||||
Setting,
|
|
||||||
TFile,
|
|
||||||
} from 'obsidian';
|
|
||||||
import { FolderSuggest } from './src/suggestions/folderSuggest';
|
import { FolderSuggest } from './src/suggestions/folderSuggest';
|
||||||
import { renderDonateButton } from './src/components/DonateButton';
|
import { renderDonateButton } from './src/components/DonateButton';
|
||||||
import {
|
import {
|
||||||
|
|
|
@ -78,6 +78,11 @@ export const renameFilesInObsidian = (app: App, plugin: BulkRenamePlugin) => {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!plugin.settings.fileNames.length) {
|
||||||
|
new Notice('Please check your results before rename!');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
new Notice('renaming has been started');
|
new Notice('renaming has been started');
|
||||||
for (const fileName of plugin.settings.fileNames) {
|
for (const fileName of plugin.settings.fileNames) {
|
||||||
app.fileManager.renameFile(fileName, replaceFilePath(plugin, fileName));
|
app.fileManager.renameFile(fileName, replaceFilePath(plugin, fileName));
|
||||||
|
|
|
@ -15,6 +15,9 @@ describe('File Services', () => {
|
||||||
it.todo(
|
it.todo(
|
||||||
'should display notification if Existing Symbol match Replace Pattern',
|
'should display notification if Existing Symbol match Replace Pattern',
|
||||||
);
|
);
|
||||||
|
it.todo(
|
||||||
|
"should throw an error if there files didn't reviewed before submit",
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('Renaming', () => {
|
describe('Renaming', () => {
|
||||||
|
|
Loading…
Reference in New Issue