Skip to content

Commit

Permalink
Single archive as default configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
mwoz123 committed Nov 13, 2023
1 parent 88232d2 commit a8edfd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.ts
Expand Up @@ -6,7 +6,7 @@ interface PluginSettings {
}

const DEFAULT_SETTINGS: PluginSettings = {
archives: ['archive-main.md', 'hobby/archive.md']
archives: ['archive-main.md']
}

export default class ArchiveToSingleFilePlugin extends Plugin {
Expand Down Expand Up @@ -69,7 +69,7 @@ class ArchiveToSingleFilePluginSettingTab extends PluginSettingTab {

this.plugin.settings.archives.map((archiveName: string, index, array) => {
new Setting(containerEl)
.setName('Archive ' + (index + 1) + " path")
.setName(array.length ===1 ? 'Main archive ': 'Archive ' +(index + 1) + " path")
.setDesc('with folder prefix (if needed)')
.addText(text => text
.setValue(archiveName)
Expand Down

0 comments on commit a8edfd2

Please sign in to comment.