@firstpick/pi-extension-todo-progress 0.1.7 → 0.1.9
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/README.md +2 -0
- package/images/todo_progress_v0.1.8.png +0 -0
- package/index.ts +7 -0
- package/package.json +3 -1
package/README.md
CHANGED
|
Binary file
|
package/index.ts
CHANGED
|
@@ -159,5 +159,12 @@ export default function todoProgress(pi: ExtensionAPI) {
|
|
|
159
159
|
pi.registerShortcut("ctrl+alt+j", { description: "Todo scroll down", handler: async (ctx) => { state.offset = Math.min(Math.max(0, state.items.length - MAX_ROWS), state.offset + 1); render(ctx, state); } });
|
|
160
160
|
pi.registerShortcut("ctrl+alt+k", { description: "Todo scroll up", handler: async (ctx) => { state.offset = Math.max(0, state.offset - 1); render(ctx, state); } });
|
|
161
161
|
|
|
162
|
+
pi.registerCommand("todo-progress-status", {
|
|
163
|
+
description: "Show todo-progress widget extension status",
|
|
164
|
+
handler: async (_args, ctx) => {
|
|
165
|
+
ctx.ui.notify(`todo-progress loaded · visible ${state.visible ? "yes" : "no"} · items ${state.items.length}`, "info");
|
|
166
|
+
},
|
|
167
|
+
});
|
|
168
|
+
|
|
162
169
|
pi.on("session_start", async (_event, ctx) => clear(ctx, state));
|
|
163
170
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firstpick/pi-extension-todo-progress",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "Aggressive automatic todo progress widget for multi-goal prompts in Pi.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"progress"
|
|
12
12
|
],
|
|
13
13
|
"pi": {
|
|
14
|
+
"image": "https://unpkg.com/@firstpick/pi-extension-todo-progress/images/todo_progress_v0.1.8.png",
|
|
14
15
|
"extensions": [
|
|
15
16
|
"./index.ts"
|
|
16
17
|
]
|
|
@@ -21,6 +22,7 @@
|
|
|
21
22
|
},
|
|
22
23
|
"files": [
|
|
23
24
|
"index.ts",
|
|
25
|
+
"images",
|
|
24
26
|
"README.md",
|
|
25
27
|
"LICENSE"
|
|
26
28
|
]
|