Skip to content

Commit

Permalink
Correct various settings names/descriptions to sentence case to align…
Browse files Browse the repository at this point in the history
… with Obsidian plugin guidelines
  • Loading branch information
zachmueller committed Sep 20, 2024
1 parent 1a1e2b3 commit a87997d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ class SpacedEverythingSettingTab extends PluginSettingTab {

containerEl.empty();

new Setting(containerEl).setName('Spacing Methods').setHeading();
new Setting(containerEl).setName('Spacing methods').setHeading();
const spacingMethodsSettingDiv = containerEl.createDiv();
const spacingMethodsDiv = containerEl.createDiv();
const addSpacingMethodDiv = containerEl.createDiv();
Expand Down Expand Up @@ -570,7 +570,7 @@ class SpacedEverythingSettingTab extends PluginSettingTab {
const settingBody = settingEl.createDiv('spacing-method-body');

new Setting(settingHeader)
.setName(`Spacing Method - #${index + 1}`)
.setName(`Spacing method - #${index + 1}`)
.setDesc('Configure the settings for this spacing method.');

const generalSettingsDiv = settingBody.createDiv('general-settings');
Expand Down Expand Up @@ -603,7 +603,7 @@ class SpacedEverythingSettingTab extends PluginSettingTab {
spacingMethod.defaultInterval = numericValue;
await this.plugin.saveSettings();
} else {
new Notice('Default Interval must be a number.');
new Notice('Default interval must be a number.');
}
})
);
Expand All @@ -615,7 +615,7 @@ class SpacedEverythingSettingTab extends PluginSettingTab {
dropdown
.addOptions({
'SuperMemo2.0': 'SuperMemo 2.0',
'Custom': 'Custom Script',
'Custom': 'Custom script',
})
.setValue(spacingMethod.spacingAlgorithm)
.onChange(async (value) => {
Expand All @@ -630,7 +630,7 @@ class SpacedEverythingSettingTab extends PluginSettingTab {
// TODO::hide unless 'Custom Script' option set above::
.addText((text) =>
text
.setPlaceholder('Custom Script File Name')
.setPlaceholder('Custom script file name')
.setValue(spacingMethod.customScriptFileName)
.onChange(async (value) => {
// TODO::implement helper stuff for auto-completing paths/filenames::
Expand All @@ -654,7 +654,7 @@ class SpacedEverythingSettingTab extends PluginSettingTab {
spacingMethod.defaultEaseFactor = numericValue;
await this.plugin.saveSettings();
} else {
new Notice('Default Ease Factor must be a number.');
new Notice('Default ease factor must be a number.');
}
})
.setDisabled(spacingMethod.spacingAlgorithm !== 'SuperMemo2.0')
Expand All @@ -664,7 +664,7 @@ class SpacedEverythingSettingTab extends PluginSettingTab {
const reviewOptionsDiv = settingBody.createDiv('review-options');
new Setting(reviewOptionsDiv)
.setHeading()
.setName('Review Options')
.setName('Review options')
.setDesc('Customize the review options and scores to use in this spacing method. For the SuperMemo-2.0 spacing algorithm, review scores must be a number from 0 to 5.');

const addReviewOptionDiv = reviewOptionsDiv.createDiv();
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "spaced-everything",
"name": "Spaced everything",
"version": "1.0.6",
"version": "1.0.7",
"minAppVersion": "1.6.7",
"description": "Apply spaced repetition algorithms to everything in your vault.",
"author": "Zach Mueller",
Expand Down

0 comments on commit a87997d

Please sign in to comment.