feat: Prepare settings structure for flexible symbols

This commit is contained in:
Grol Grol 2025-04-20 15:31:13 +03:00
parent 03ee45cc1c
commit 2a0a12bce0
2 changed files with 8 additions and 0 deletions

View file

@ -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 {

View file

@ -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;
}