Skip to content

Commit

Permalink
feat: ✨ Option to not show Index Refreshed notice (fix #177)
Browse files Browse the repository at this point in the history
  • Loading branch information
SkepticMystic committed Nov 29, 2021
1 parent 7f1b7cf commit 6f1dbf0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/BreadcrumbsSettingTab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,18 @@ export class BCSettingTab extends PluginSettingTab {
};
});

new Setting(generalDetails)
.setName("Show Refresh Index Notice")
.setDesc(
"When Refreshing Index, should it show a notice once the operation is complete?"
)
.addToggle((toggle) =>
toggle.setValue(settings.showRefreshNotice).onChange(async (value) => {
settings.showRefreshNotice = value;
await plugin.saveSettings();
})
);

new Setting(generalDetails)
.setName("Enable Field Suggestor")
.setDesc(
Expand Down
1 change: 1 addition & 0 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ export const DEFAULT_SETTINGS: BCSettings = {
showAllPathsIfNoneToIndexNote: false,
showBCs: true,
showBCsInEditLPMode: false,
showRefreshNotice: true,
showTrail: true,
showGrid: true,
showPrevNext: true,
Expand Down
1 change: 1 addition & 0 deletions src/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export interface BCSettings {
showAll: boolean;
showGrid: boolean;
showPrevNext: boolean;
showRefreshNotice: boolean;
showTrail: boolean;
trailSeperator: string;
useAllMetadata: boolean;
Expand Down

0 comments on commit 6f1dbf0

Please sign in to comment.