release v1.8.0: reuse open tabs for periodic notes
This commit is contained in:
1 parent
695141383f
commit
984a0ab44f
10 files changed
+75
-32
No files matched your search
@@ -157,6 +157,17 @@ export class WaypointSettingTab extends PluginSettingTab {
|
||||
// ═══════════════════════════════
|
||||
|
||||
private renderPeriodicTab(container: HTMLElement): void {
|
||||
new Setting(container)
|
||||
.setName('Use existing tabs')
|
||||
.setDesc('If a periodic note is already open, switch to its tab instead of opening it again.')
|
||||
.addToggle((toggle) => {
|
||||
toggle
|
||||
.setValue(this.settings.reusePeriodicNoteTabs)
|
||||
.onChange((value) => {
|
||||
this.settings.reusePeriodicNoteTabs = value;
|
||||
this.saveAndRefresh();
|
||||
});
|
||||
});
|
||||
this.addPeriodNoteSettings(container, 'Daily', this.settings.daily);
|
||||
this.addPeriodNoteSettings(container, 'Weekly', this.settings.weekly);
|
||||
this.addPeriodNoteSettings(container, 'Monthly', this.settings.monthly);
|
||||
|
||||
Reference in new issue
Block a user