# Summary on Obsidian Todoist Plugin code - 202212302022 The following summary is mainly based on the following: 📝 2022-12-30T20:22 - The code repo of [[Tool Obsidian - Todoist]] 📝 2022-12-30T20:23 ## Note - `src/api/` 📝 2022-12-30T20:13 - `api.ts` - Core code 📝 2022-12-30T20:13 - `const data = { content: content, ...(options ?? {}) };` 📝 2022-12-30T20:51 ^wo8du7 - Accumulate task data 📝 2022-12-30T20:52 - `models.ts` - Core code 📝 2022-12-30T20:14 - `public content: string;` 📝 2022-12-30T20:53 ^y8cjzf - Variable for task content 📝 2022-12-30T20:53 - `raw_models.ts` - Seems for querying Todoist tasks in Obsidian 📝 2022-12-30T20:15 - `content: string;` 📝 2022-12-30T20:55 ^k8fst1 - Variable for task content 📝 2022-12-30T20:55 - `src/components/` 📝 2022-12-30T20:15 - `CollapseIndicator.svelte` - For svelte 📝 2022-12-30T20:16 - `src/modals/` 📝 2022-12-30T20:17 - `createTask` - For creating tasks from Obsidian to Todoist, e.g. with the calendar view 📝 2022-12-30T20:18 - [ ] One can add a task box with the following code, but now to pass the value to the Todoist API? 📝 2022-12-30T20:44 ^eyoqwy - `<input bind:this={inputEl} type="text" bind:value placeholder="What to do?" />` - ==This is important because one can do something similar for task descriptions below the task title box.== 📝 2022-12-30T20:45 - `let opts: ICreateTaskOptions = {` 📝 2022-12-30T21:07 ^7uro9z - It seems that one can add variables like `priority` here. ==So task description may also be added here.== 📝 2022-12-30T21:09 - `enterToken` - For handling Todoist tokens 📝 2022-12-30T20:20 - `src/ui/` - Seems mainly for querying Todoist tasks in Obsidian 📝 2022-12-30T20:21 - `src/` 📝 2022-12-30T20:13 - `contextMenu.ts` - Mainly for completing and opening Todoist tasks from Obsidian. 📝 2022-12-30T20:06 - `index.ts` - Mainly for creating tasks from Obsidian to Todoist 📝 2022-12-30T20:07 - `log.ts` - Not sure what is this for but does not seem to be a core modal. 📝 2022-12-30T20:08 - `query.ts` - Mainly for querying Todoist tasks from Obsidian 📝 2022-12-30T20:08 - `queryInjector.ts` - Mainly for querying Todoist tasks from Obsidian 📝 2022-12-30T20:09 - `result.ts` - Not sure what is this for 📝 2022-12-30T20:10 - `settings.ts` - Mainly for configuration pane 📝 2022-12-30T20:10 - `token.ts` - Mainly for Todoist token 📝 2022-12-30T20:11 - `utils.ts` - Not sure what this is for 📝 2022-12-30T20:12