mirror of
https://github.com/groldsf/obsidian_check_plugin.git
synced 2026-07-22 05:37:48 +00:00
feat: Prepare settings structure for flexible symbols
This commit is contained in:
parent
03ee45cc1c
commit
2a0a12bce0
2 changed files with 8 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
Loading…
Reference in a new issue