Skip to main content

Module model

Module model 

Source
Expand description

Task and category types for the local todo store.

SQLite is the current on-disk format. SCHEMA_VERSION identifies only the legacy JSON envelopes accepted by the one-time importer. “All Tasks” is never stored — it is a UI view over every task.

Structs§

Category
Label
Task

Enums§

Block
LabelColor

Constants§

ALL_CATEGORY
Sentinel category id for the “All Tasks” view. Not written to disk.
MAX_CATEGORY_COUNT
MAX_CATEGORY_DESC_LINES
MAX_CATEGORY_DESC_LINE_LEN
MAX_CATEGORY_NAME_LEN
MAX_DESCRIPTION_LINES
MAX_IMPORTANCE
MAX_LABELS_PER_TASK
MAX_LABEL_COLOR_LEN
MAX_LABEL_COUNT
MAX_LABEL_NAME_LEN
MAX_NOTES_LINE_LEN
MAX_TASK_COUNT
MAX_TITLE_LEN
SCHEMA_VERSION
Legacy tasks.json / categories.json envelope schema accepted on import.

Functions§

caseless_contains
Whether haystack contains an already-normalized caseless search key.
caseless_key
Stable Unicode compatibility-normalized, default-case-folded text used by every caseless identity and search path.
category_name_key
Unicode-normalized, case-folded identity for category names.
has_prose_or_image
importance_marks
label_name_key
Unicode-normalized, case-folded identity for label names.
new_uuid
next_importance
task_text_contains
Whether a task title or textual description block contains a caseless key. Image attachment identities are storage metadata, not searchable task text.
text_byte_limit
Byte budget paired with a user-visible grapheme limit. This keeps a single grapheme with pathological combining sequences from bypassing every text length boundary while leaving generous room for emoji ZWJ sequences.
todo_progress