Skip to content

Commit

Permalink
🚸 clarify auto-complete description
Browse files Browse the repository at this point in the history
  • Loading branch information
ebullient committed Aug 7, 2024
1 parent a5ec311 commit c9474e8
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions src/slidesExtended-SettingTab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,18 +103,20 @@ export class SlidesExtendedSettingTab extends PluginSettingTab {
}),
);

// new Setting(containerEl)
// .setName('Auto complete')
// .setDesc('Do you want to auto-complete inputs?')
// .addDropdown(cb => {
// cb.addOption('always', 'Always')
// .addOption('inPreview', 'only in slide preview')
// .addOption('never', 'Never')
// .setValue(this.newSettings.autoComplete)
// .onChange(value => {
// this.newSettings.autoComplete = value;
// });
// });
new Setting(containerEl)
.setName('Auto complete')
.setDesc(
'Enable auto-complete inputs. "Always" enables it everywhere, "When slide preview is active" enables it only when the slide preview is active, and "Never" disables it.',
)
.addDropdown(cb => {
cb.addOption('always', 'Always')
.addOption('inPreview', 'When slide preview is active')
.addOption('never', 'Never')
.setValue(this.newSettings.autoComplete)
.onChange(value => {
this.newSettings.autoComplete = value;
});
});

new Setting(containerEl)
.setName('Export directory')
Expand Down

0 comments on commit c9474e8

Please sign in to comment.