@soleone/pi-tasks 0.4.0 → 0.4.2
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 +13 -16
- package/package.json +1 -1
- package/src/extension.ts +1 -1
- package/src/ui/pages/list.ts +4 -1
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Task management extension for the [pi coding agent](https://github.com/badlogic/
|
|
|
7
7
|
## Quick start
|
|
8
8
|
|
|
9
9
|
1. Installation: `pi install npm:@soleone/pi-tasks`
|
|
10
|
-
2. Toggle the Tasks UI with `ctrl +
|
|
10
|
+
2. Toggle the Tasks UI with `ctrl + shift + r` or `alt + x`, or use `/tasks`.
|
|
11
11
|
|
|
12
12
|
## Usage
|
|
13
13
|
|
|
@@ -30,25 +30,22 @@ Task management extension for the [pi coding agent](https://github.com/badlogic/
|
|
|
30
30
|
- `Tab` to switch focus between inputs
|
|
31
31
|
- `Enter` to save
|
|
32
32
|
|
|
33
|
-
##
|
|
33
|
+
## Task backends
|
|
34
34
|
|
|
35
35
|
By default, the extension auto-detects the first applicable backend. If none are applicable, it falls back to `todo-md`.
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
Currently supported values:
|
|
37
|
+
For most setups, `sq` is recommended as the default backend. It is lightweight, works well in brand new directories, and can create its local data on demand. Install it from the [`sq` installation guide](https://github.com/DerekStride/sq?tab=readme-ov-file#installation).
|
|
39
38
|
|
|
40
|
-
|
|
41
|
-
- `sq`
|
|
42
|
-
- `todo-md`
|
|
39
|
+
### Supported backends:
|
|
43
40
|
|
|
44
|
-
|
|
41
|
+
- [sq](https://github.com/DerekStride/sq) - Uses the `sq` cli to manage tasks in a `.sift` directory via a `issues.jsonl` file. No initialization necessary.
|
|
42
|
+
- [beads](https://github.com/steveyegge/beads) - Uses the `bd` cli to manage tasks into a `.beads` directory containing multiple files.
|
|
43
|
+
- `todo-md` - Creates or reads a `TODO.md` file with different sections to emulate priority.
|
|
45
44
|
|
|
46
|
-
|
|
45
|
+
## Optional env vars:
|
|
47
46
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
- `PI_TASKS_TODO_PATH` — override the TODO file path
|
|
47
|
+
- `PI_TASKS_TODO_PATH` - override the TODO file path
|
|
48
|
+
- `PI_TASKS_BACKEND` - to explicitly choose a backend implementation. Currently supported values:
|
|
49
|
+
- `sq`
|
|
50
|
+
- `beads`
|
|
51
|
+
- `todo-md`
|
package/package.json
CHANGED
package/src/extension.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { showTaskList } from "./ui/pages/list.ts"
|
|
|
6
6
|
import { showTaskForm } from "./ui/pages/show.ts"
|
|
7
7
|
import type { TaskUpdate } from "./backend/api.ts"
|
|
8
8
|
|
|
9
|
-
const TASK_LIST_SHORTCUTS = ["ctrl+
|
|
9
|
+
const TASK_LIST_SHORTCUTS = ["ctrl+shift+r", "alt+x"]
|
|
10
10
|
|
|
11
11
|
function parsePriorityKey(
|
|
12
12
|
data: string,
|
package/src/ui/pages/list.ts
CHANGED
|
@@ -366,7 +366,10 @@ export async function showTaskList(ctx: ExtensionCommandContext, config: ListPag
|
|
|
366
366
|
|
|
367
367
|
return {
|
|
368
368
|
render: (w: number) => {
|
|
369
|
-
lastWidth
|
|
369
|
+
if (lastWidth !== w) {
|
|
370
|
+
lastWidth = w
|
|
371
|
+
updateDescPreview()
|
|
372
|
+
}
|
|
370
373
|
return container.render(w).map((l: string) => truncateToWidth(l, w))
|
|
371
374
|
},
|
|
372
375
|
invalidate: () => container.invalidate(),
|