From 6674deadff31ff61026500c6d9e4b7368e72293e Mon Sep 17 00:00:00 2001 From: Oleg Date: Sat, 27 Aug 2022 14:48:54 +0300 Subject: [PATCH] update dir structure --- README.md | 2 +- {assets => documentation/assets}/img.png | Bin main.ts | 10 ++++++---- package.json | 2 +- {components => src/components}/DonateButton.ts | 0 {suggestions => src/suggestions}/folderSuggest.ts | 0 {suggestions => src/suggestions}/suggest.ts | 0 7 files changed, 8 insertions(+), 6 deletions(-) rename {assets => documentation/assets}/img.png (100%) rename {components => src/components}/DonateButton.ts (100%) rename {suggestions => src/suggestions}/folderSuggest.ts (100%) rename {suggestions => src/suggestions}/suggest.ts (100%) diff --git a/README.md b/README.md index e38f300..d98e664 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ This plugin was developed to cover my initial needs and rename a bunch of files and update their reference in code base respectively. So now you can rename a bunch of files from the directory and all imports also will be updated in a code-base -![img.png](assets/img.png) +![img.png](documentation/assets/img.png) > Under the hood this plugin is using obsidian API for renaming, but we just applying it for many files diff --git a/assets/img.png b/documentation/assets/img.png similarity index 100% rename from assets/img.png rename to documentation/assets/img.png diff --git a/main.ts b/main.ts index 6caa4a3..fe6e107 100644 --- a/main.ts +++ b/main.ts @@ -1,6 +1,6 @@ import { App, Plugin, PluginSettingTab, Setting, TFile } from 'obsidian'; -import { FolderSuggest } from './suggestions/folderSuggest'; -import { renderDonateButton } from './components/DonateButton'; +import { FolderSuggest } from './src/suggestions/folderSuggest'; +import { renderDonateButton } from './src/components/DonateButton'; interface MyPluginSettings { folderName: string; @@ -140,7 +140,9 @@ class BulkRenameSettingsTab extends PluginSettingTab { text.inputEl.addClass('templater_cmd'); }) .addTextArea((text) => { - text.setPlaceholder('How filenames will looks like after replacement(click preview first)'); + text.setPlaceholder( + 'How filenames will looks like after replacement(click preview first)', + ); replacedPreviewTextArea = text.inputEl; const value = getRenderedFileNamesReplaced(this.plugin); text.setValue(value); @@ -168,7 +170,7 @@ class BulkRenameSettingsTab extends PluginSettingTab { .setName('Replace patterns') .addButton((button) => { button.buttonEl.style.width = '100%'; - button.setTooltip('This action cannot be undone!'); + button.setTooltip("FYI: We don't have undone button yet!"); button.setButtonText('Rename'); button.onClick(() => { const { replacePattern, existingSymbol } = this.plugin.settings; diff --git a/package.json b/package.json index cae346a..c58c17b 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "dev": "node esbuild.config.mjs", "build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production", - "version": "node version-bump.mjs && git add manifest.json versions.json" + "version": "node version-bump.mjs && git add manifest.json versions.json && git push origin --tags" }, "keywords": [], "author": "", diff --git a/components/DonateButton.ts b/src/components/DonateButton.ts similarity index 100% rename from components/DonateButton.ts rename to src/components/DonateButton.ts diff --git a/suggestions/folderSuggest.ts b/src/suggestions/folderSuggest.ts similarity index 100% rename from suggestions/folderSuggest.ts rename to src/suggestions/folderSuggest.ts diff --git a/suggestions/suggest.ts b/src/suggestions/suggest.ts similarity index 100% rename from suggestions/suggest.ts rename to src/suggestions/suggest.ts