Skip to content

Commit

Permalink
enhance: settings headers + better default values
Browse files Browse the repository at this point in the history
  • Loading branch information
debanjandhar12 committed Aug 25, 2022
1 parent fae1175 commit b427655
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"dependencies": {
"@logseq/libs": "0.0.6",
"@logseq/libs": "0.0.7",
"@logseq/libs": "0.0.8",
"cheerio": "1.0.0-rc.12",
"hash-sum": "2.0.0",
"highlight.js": "11.5.1",
Expand Down
18 changes: 16 additions & 2 deletions src/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,17 @@ import { AddonRegistry } from './addons/AddonRegistry';
import { LogseqProxy } from './LogseqProxy';
export const addSettingsToLogseq = () => {
const settingsTemplate: SettingSchemaDesc[] = [
{
key: "generalSettingsHeading",
title: "⚡ General Settings",
description: "",
type: "heading",
default: null,
},
{
key: "breadcrumbDisplay",
type: 'enum',
default: "Show Page name and parent blocks context",
default: "Show Page name only",
title: "What to display in the breadcrumb?",
description: "Pick what to display in the breadcrumb.",
enumChoices: ["Show Page name only", "Show Page name and parent blocks context"],
Expand All @@ -16,7 +23,7 @@ export const addSettingsToLogseq = () => {
{
key: "includeParentContent",
type: 'boolean',
default: false,
default: true,
title: "Include parent content in cards? If enabled, the parent content will be included in the cards.",
description: "Include parent content in cards",
},
Expand All @@ -36,6 +43,13 @@ export const addSettingsToLogseq = () => {
enumPicker: "checkbox",
description: "Select the addons to use. Addons are typically lower in quality than the main plugin features. Also, all addons require a restart to take effect.",
},
{
key: "advancedSettingsHeading",
title: "💻 Advanced Settings",
description: "",
type: "heading",
default: null,
},
{
key: "skipOnDependencyHashMatch",
type: 'boolean',
Expand Down

0 comments on commit b427655

Please sign in to comment.