update dir structure
This commit is contained in:
parent
b6bd2049dd
commit
6674deadff
|
@ -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
|
||||
|
||||

|
||||

|
||||
|
||||
> Under the hood this plugin is using obsidian API for renaming, but we just applying it for many files
|
||||
|
||||
|
|
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 44 KiB |
10
main.ts
10
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;
|
||||
|
|
|
@ -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": "",
|
||||
|
|
Loading…
Reference in New Issue