Skip to content

Commit

Permalink
feat: Add toggle in Settings to choose default layout
Browse files Browse the repository at this point in the history
  • Loading branch information
phibr0 committed Dec 28, 2021
1 parent 919dc44 commit 38c7240
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,18 @@ export class ObsidianGitSettingsTab extends PluginSettingTab {
plugin.saveSettings();
})
);

new Setting(containerEl)
.setName("Use Tree Layout for Sidebar")
.setDesc("If turned on, the Tree Layout will be the default.")
.addToggle((toggle) =>
toggle
.setValue(plugin.settings.treeStructure)
.onChange((value) => {
plugin.settings.treeStructure = value;
plugin.saveSettings();
})
);

new Setting(containerEl)
.setName("Custom Git binary path")
Expand Down

0 comments on commit 38c7240

Please sign in to comment.