From 2a0a12bce08502ba30061c5ea728519de24bc7c4 Mon Sep 17 00:00:00 2001 From: Grol Grol Date: Sun, 20 Apr 2025 15:31:13 +0300 Subject: [PATCH] feat: Prepare settings structure for flexible symbols --- src/main.ts | 3 +++ src/types.ts | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/src/main.ts b/src/main.ts index 8a17fd8..1225ef5 100644 --- a/src/main.ts +++ b/src/main.ts @@ -11,6 +11,9 @@ const DEFAULT_SETTINGS: CheckboxSyncPluginSettings = { xOnlyMode: true, enableAutomaticParentState: true, enableAutomaticChildState: true, + checkedSymbols: ['x'], + uncheckedSymbols: [' '], + unknownSymbolPolicy: 'checked', }; export default class CheckboxSyncPlugin extends Plugin { diff --git a/src/types.ts b/src/types.ts index ed447ff..86c1b63 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,5 +1,10 @@ +export type UnknownSymbolPolicy = 'checked' | 'unchecked' | 'ignore'; + export interface CheckboxSyncPluginSettings { xOnlyMode: boolean; enableAutomaticParentState: boolean; enableAutomaticChildState: boolean; + checkedSymbols: string[]; + uncheckedSymbols: string[]; + unknownSymbolPolicy: UnknownSymbolPolicy; } \ No newline at end of file