add legacy-peer deps
This commit is contained in:
parent
f7eaba92f7
commit
6a77915ad3
9
main.ts
9
main.ts
|
@ -1,11 +1,4 @@
|
|||
import {
|
||||
App,
|
||||
Notice,
|
||||
Plugin,
|
||||
PluginSettingTab,
|
||||
Setting,
|
||||
TFile,
|
||||
} from 'obsidian';
|
||||
import { App, Plugin, PluginSettingTab, Setting, TFile } from 'obsidian';
|
||||
import { FolderSuggest } from './src/suggestions/folderSuggest';
|
||||
import { renderDonateButton } from './src/components/DonateButton';
|
||||
import {
|
||||
|
|
|
@ -78,6 +78,11 @@ export const renameFilesInObsidian = (app: App, plugin: BulkRenamePlugin) => {
|
|||
return;
|
||||
}
|
||||
|
||||
if (!plugin.settings.fileNames.length) {
|
||||
new Notice('Please check your results before rename!');
|
||||
return;
|
||||
}
|
||||
|
||||
new Notice('renaming has been started');
|
||||
for (const fileName of plugin.settings.fileNames) {
|
||||
app.fileManager.renameFile(fileName, replaceFilePath(plugin, fileName));
|
||||
|
|
|
@ -15,6 +15,9 @@ describe('File Services', () => {
|
|||
it.todo(
|
||||
'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', () => {
|
||||
|
|
Loading…
Reference in New Issue