improve layout, fix typos in README

This commit is contained in:
Oleh Lustenko 2022-09-09 16:59:38 +03:00
parent 327e25c998
commit 7b8c684722
3 changed files with 12 additions and 7 deletions

View File

@ -5,7 +5,7 @@
[![Github all releases](https://img.shields.io/github/downloads/OlegLustenko/obsidian-bulk-rename/total.svg)](https://github.com/OlegLustenko/obsidian-bulk-rename/releases/) [![Github all releases](https://img.shields.io/github/downloads/OlegLustenko/obsidian-bulk-rename/total.svg)](https://github.com/OlegLustenko/obsidian-bulk-rename/releases/)
[![GitLab latest release](https://badgen.net/github/release/OlegLustenko/obsidian-bulk-rename/)](https://github.com/OlegLustenko/obsidian-bulk-rename/releases) [![GitLab latest release](https://badgen.net/github/release/OlegLustenko/obsidian-bulk-rename/)](https://github.com/OlegLustenko/obsidian-bulk-rename/releases)
## Introduction ## 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.
![](documentation/assets/Animation.gif) ![](documentation/assets/Animation.gif)
@ -55,7 +55,7 @@ Rename files will start renaming all files by respective path.
## Motivation ## Motivation
This plugin was developed to cover my needs. Originally I've started to use my daily files with **_** delimiter. 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. 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.

View File

@ -139,7 +139,7 @@ export class BulkRenameSettingsTab extends PluginSettingTab {
this.getFilesByFolder(); this.getFilesByFolder();
}); });
// @ts-ignore // @ts-ignore
cb.containerEl.addClass('templater_search'); cb.containerEl.addClass('bulk_rename');
}) })
.addButton((button) => { .addButton((button) => {
button.setButtonText('Refresh'); button.setButtonText('Refresh');
@ -173,7 +173,7 @@ export class BulkRenameSettingsTab extends PluginSettingTab {
this.getFilesByTags(); this.getFilesByTags();
}); });
// @ts-ignore // @ts-ignore
cb.containerEl.addClass('templater_search'); cb.containerEl.addClass('bulk_rename');
}) })
.addButton((button) => { .addButton((button) => {
button.setButtonText('Refresh'); button.setButtonText('Refresh');
@ -182,9 +182,6 @@ export class BulkRenameSettingsTab extends PluginSettingTab {
} }
renderReplaceSymbol() { renderReplaceSymbol() {
// if (isViewTypeTags(this.plugin)) {
// return;
// }
const { settings } = this.plugin; const { settings } = this.plugin;
const desc = document.createDocumentFragment(); const desc = document.createDocumentFragment();
@ -225,6 +222,8 @@ export class BulkRenameSettingsTab extends PluginSettingTab {
this.filesAndPreview = new Setting(this.containerEl) this.filesAndPreview = new Setting(this.containerEl)
.setName('Files within the folder') .setName('Files within the folder')
.setDesc(`Total Files: ${this.plugin.settings.fileNames.length}`); .setDesc(`Total Files: ${this.plugin.settings.fileNames.length}`);
this.filesAndPreview.controlEl.addClass('bulk_rename_preview');
this.calculateFileNames(); this.calculateFileNames();
renderPreviewFiles(this.filesAndPreview, this.plugin, this.state); renderPreviewFiles(this.filesAndPreview, this.plugin, this.state);

View File

@ -1 +1,7 @@
.bulk_rename {
width: calc(100% - 20px);
}
.bulk_rename_preview {
width: 80%;
}