@trim21/personal-pi-extensions 0.0.189 → 0.0.192
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/todowrite.ts +2 -2
package/package.json
CHANGED
package/src/todowrite.ts
CHANGED
|
@@ -114,7 +114,7 @@ export function serializeTodos(todos: readonly TodoInfo[]): string {
|
|
|
114
114
|
|
|
115
115
|
const STATUS_MARK: Record<TodoStatus, string> = {
|
|
116
116
|
pending: " ",
|
|
117
|
-
in_progress: "
|
|
117
|
+
in_progress: " ",
|
|
118
118
|
completed: "x",
|
|
119
119
|
cancelled: "-",
|
|
120
120
|
};
|
|
@@ -143,7 +143,7 @@ export function buildTodoMarkdown(todos: readonly TodoInfo[]): string {
|
|
|
143
143
|
* 过滤 cancelled(对应旧版 deleted),全部被过滤时返回 undefined 以清除 widget。
|
|
144
144
|
*/
|
|
145
145
|
export function buildTodoWidgetLines(todos: readonly TodoInfo[]): string[] | undefined {
|
|
146
|
-
const visible = todos
|
|
146
|
+
const visible = todos;
|
|
147
147
|
if (visible.length === 0) return undefined;
|
|
148
148
|
return visible.map((t) => formatTodoLine(t));
|
|
149
149
|
}
|