improve layout, fix typos in README
This commit is contained in:
parent
327e25c998
commit
7b8c684722
|
@ -5,7 +5,7 @@
|
|||
[](https://github.com/OlegLustenko/obsidian-bulk-rename/releases/)
|
||||
[](https://github.com/OlegLustenko/obsidian-bulk-rename/releases)
|
||||
## Introduction
|
||||
Now you can rename a bunch of files from the directory and all references also will be updated acros the vault.
|
||||
Now you can rename a bunch of files from the directory and all references also will be updated across the vault.
|
||||
|
||||

|
||||
|
||||
|
@ -55,7 +55,7 @@ Rename files will start renaming all files by respective path.
|
|||
|
||||
## Motivation
|
||||
This plugin was developed to cover my needs. Originally I've started to use my daily files with **_** delimiter.
|
||||
So my files looked like this: 2022_01_01, over the time I realized other platform out of the bos configured to prefer dashes.
|
||||
So my files looked like this: 2022_01_01, over the time I realized other platform out of the box configured to prefer dashes, like this 2022-01-01
|
||||
|
||||
Here is many guides on how to rename files, what kind of script we need to run, what version of python or Node.js we need to install and so on.
|
||||
|
||||
|
|
9
main.ts
9
main.ts
|
@ -139,7 +139,7 @@ export class BulkRenameSettingsTab extends PluginSettingTab {
|
|||
this.getFilesByFolder();
|
||||
});
|
||||
// @ts-ignore
|
||||
cb.containerEl.addClass('templater_search');
|
||||
cb.containerEl.addClass('bulk_rename');
|
||||
})
|
||||
.addButton((button) => {
|
||||
button.setButtonText('Refresh');
|
||||
|
@ -173,7 +173,7 @@ export class BulkRenameSettingsTab extends PluginSettingTab {
|
|||
this.getFilesByTags();
|
||||
});
|
||||
// @ts-ignore
|
||||
cb.containerEl.addClass('templater_search');
|
||||
cb.containerEl.addClass('bulk_rename');
|
||||
})
|
||||
.addButton((button) => {
|
||||
button.setButtonText('Refresh');
|
||||
|
@ -182,9 +182,6 @@ export class BulkRenameSettingsTab extends PluginSettingTab {
|
|||
}
|
||||
|
||||
renderReplaceSymbol() {
|
||||
// if (isViewTypeTags(this.plugin)) {
|
||||
// return;
|
||||
// }
|
||||
const { settings } = this.plugin;
|
||||
const desc = document.createDocumentFragment();
|
||||
|
||||
|
@ -225,6 +222,8 @@ export class BulkRenameSettingsTab extends PluginSettingTab {
|
|||
this.filesAndPreview = new Setting(this.containerEl)
|
||||
.setName('Files within the folder')
|
||||
.setDesc(`Total Files: ${this.plugin.settings.fileNames.length}`);
|
||||
|
||||
this.filesAndPreview.controlEl.addClass('bulk_rename_preview');
|
||||
this.calculateFileNames();
|
||||
|
||||
renderPreviewFiles(this.filesAndPreview, this.plugin, this.state);
|
||||
|
|
|
@ -1 +1,7 @@
|
|||
.bulk_rename {
|
||||
width: calc(100% - 20px);
|
||||
}
|
||||
|
||||
.bulk_rename_preview {
|
||||
width: 80%;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue