mirror of
https://github.com/lostpaul/obsidian-folder-notes.git
synced 2026-07-22 07:40:24 +00:00
Some small settings tab improvements
This commit is contained in:
parent
990a3d5305
commit
069be643db
4 changed files with 8 additions and 4 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import { Setting } from 'obsidian';
|
||||
import FolderNotesPlugin from './main';
|
||||
import ExcludedFolderSettings from './modals/exludeFolderSettings';
|
||||
import ExcludedFolderSettings from './modals/excludeFolderSettings';
|
||||
import { FolderSuggest } from './suggesters/FolderSuggester';
|
||||
import { SettingsTab } from './settings';
|
||||
import PatternSettings from './modals/patternSettings';
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ export default class ExcludedFolderSettings extends Modal {
|
|||
display() {
|
||||
const { contentEl } = this;
|
||||
contentEl.empty();
|
||||
contentEl.createEl('h2', { text: 'Exluded folder settings' });
|
||||
contentEl.createEl('h2', { text: 'Excluded folder settings' });
|
||||
new Setting(contentEl)
|
||||
.setName('Include subfolders')
|
||||
.setDesc('Choose if the subfolders of the folder should also be excluded')
|
||||
|
|
@ -20,7 +20,7 @@ export default class PatternSettings extends Modal {
|
|||
contentEl.createEl('h2', { text: 'Pattern settings' });
|
||||
new Setting(contentEl)
|
||||
.setName('Disable folder name sync')
|
||||
.setDesc('Choose if the folder note should be renamed when the folder name is changed')
|
||||
.setDesc('Choose if the folder name should be renamed when the file name has been changed')
|
||||
.addToggle((toggle) =>
|
||||
toggle
|
||||
.setValue(this.pattern.disableSync)
|
||||
|
|
@ -32,7 +32,7 @@ export default class PatternSettings extends Modal {
|
|||
|
||||
new Setting(contentEl)
|
||||
.setName('Disable auto creation of folder notes in this folder')
|
||||
.setDesc('Choose if a folder note should be created when a new folder is created')
|
||||
.setDesc('Choose if a folder note should be created when a new folder is created that matches this pattern')
|
||||
.addToggle((toggle) =>
|
||||
toggle
|
||||
.setValue(this.pattern.disableAutoCreate)
|
||||
|
|
|
|||
|
|
@ -367,6 +367,10 @@ export class SettingsTab extends PluginSettingTab {
|
|||
'Use * after the folder name to exclude folders that start with the folder name.',
|
||||
);
|
||||
manageExcluded.setDesc(desc3);
|
||||
manageExcluded.infoEl.appendText('The regexes and wildcards are only for the folder name, not the path.');
|
||||
manageExcluded.infoEl.createEl('br');
|
||||
manageExcluded.infoEl.appendText('If you want to switch to a folder path delete the pattern first.');
|
||||
manageExcluded.infoEl.style.color = this.app.vault.getConfig('accentColor') as string || '#7d5bed';
|
||||
|
||||
new Setting(containerEl)
|
||||
.setName('Add excluded folder')
|
||||
|
|
|
|||
Loading…
Reference in a new issue