style: layout improvements

This commit is contained in:
Oleh Lustenko 2023-02-18 20:29:46 +02:00
parent 50648190cc
commit c1199c18ab
3 changed files with 40 additions and 43 deletions

10
main.ts
View File

@ -159,10 +159,7 @@ export class BulkRenameSettingsTab extends PluginSettingTab {
if (!isViewTypeFolder(this.plugin.settings)) { if (!isViewTypeFolder(this.plugin.settings)) {
return; return;
} }
new Setting(this.containerEl) new Setting(this.containerEl).setName('Folder location').addSearch((cb) => {
.setName('Folder location')
.setDesc('Find files within the folder')
.addSearch((cb) => {
new FolderSuggest(this.app, cb.inputEl, this.plugin); new FolderSuggest(this.app, cb.inputEl, this.plugin);
cb.setPlaceholder('Example: folder1/') cb.setPlaceholder('Example: folder1/')
.setValue(this.plugin.settings.folderName) .setValue(this.plugin.settings.folderName)
@ -183,10 +180,7 @@ export class BulkRenameSettingsTab extends PluginSettingTab {
return; return;
} }
new Setting(this.containerEl) new Setting(this.containerEl).setName('Tag names ').addSearch((cb) => {
.setName('Tag names ')
.setDesc('all files with the tags will be found')
.addSearch((cb) => {
cb.inputEl.addEventListener('keydown', (event) => { cb.inputEl.addEventListener('keydown', (event) => {
if (event.key !== 'Enter') { if (event.key !== 'Enter') {
return; return;

View File

@ -29,7 +29,7 @@ export const getObsidianFilesByRegExp = (
const abstractFiles = app.vault.getAllLoadedFiles(); const abstractFiles = app.vault.getAllLoadedFiles();
const matchedFileNames = abstractFiles.filter((file) => { const matchedFileNames = abstractFiles.filter((file) => {
if (file instanceof TFile && XRegExp.match(file.path, regExp)) { if (file instanceof TFile && XRegExp.exec(file.path, regExp)) {
return true; return true;
} }
}) as TFile[]; }) as TFile[];

View File

@ -45,7 +45,11 @@
.replaceRenderSymbols { .replaceRenderSymbols {
display: flex; display: flex;
width: 100%; width: 100%;
padding-top: 1rem; padding-top: 0.5rem;
}
.setting-item-control.replaceRenderSymbols .bulk_input {
min-height: 80px;
} }
.setting-item-control .bulk_preview_textarea { .setting-item-control .bulk_preview_textarea {
@ -74,7 +78,6 @@
width: 100%; width: 100%;
resize: none; resize: none;
min-width: auto; min-width: auto;
min-height: auto;
} }
.setting-item-control .bulk_input:first-child { .setting-item-control .bulk_input:first-child {