whatnext 3.1__tar.gz → 3.3__tar.gz
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.
- {whatnext-3.1 → whatnext-3.3}/.github/workflows/tests.yml +1 -1
- {whatnext-3.1 → whatnext-3.3}/CHANGELOG.md +27 -0
- {whatnext-3.1 → whatnext-3.3}/PKG-INFO +2 -1
- {whatnext-3.1 → whatnext-3.3}/docs/next.md +6 -0
- {whatnext-3.1 → whatnext-3.3}/docs/usage.md +10 -4
- {whatnext-3.1 → whatnext-3.3}/pyproject.toml +1 -0
- {whatnext-3.1 → whatnext-3.3}/tasks/deferring.md +6 -0
- whatnext-3.3/tasks/ignoring.md +3 -0
- {whatnext-3.1 → whatnext-3.3}/tasks/next.md +2 -2
- whatnext-3.3/tasks/summaries.md +4 -0
- {whatnext-3.1 → whatnext-3.3}/tests/colour.bats +49 -0
- {whatnext-3.1 → whatnext-3.3}/tests/deferring.bats +72 -0
- {whatnext-3.1 → whatnext-3.3}/tests/matching.bats +72 -0
- whatnext-3.3/tests/next/wide.md +5 -0
- whatnext-3.3/tests/next/wrapped.md +4 -0
- {whatnext-3.1 → whatnext-3.3}/tests/next.bats +332 -54
- {whatnext-3.1 → whatnext-3.3}/tests/summary.bats +13 -13
- {whatnext-3.1 → whatnext-3.3}/tests/test_file.py +2 -0
- {whatnext-3.1 → whatnext-3.3}/tests/usage.bats +9 -3
- {whatnext-3.1 → whatnext-3.3}/whatnext/models.py +9 -1
- {whatnext-3.1 → whatnext-3.3}/whatnext/next.py +150 -67
- {whatnext-3.1 → whatnext-3.3}/whatnext/summary.py +14 -12
- {whatnext-3.1 → whatnext-3.3}/whatnext/whatnext.py +36 -7
- {whatnext-3.1 → whatnext-3.3}/.flake8 +0 -0
- {whatnext-3.1 → whatnext-3.3}/.github/dependabot.yml +0 -0
- {whatnext-3.1 → whatnext-3.3}/.github/workflows/publish.yml +0 -0
- {whatnext-3.1 → whatnext-3.3}/.gitignore +0 -0
- {whatnext-3.1 → whatnext-3.3}/.whatnext +0 -0
- {whatnext-3.1 → whatnext-3.3}/LICENCE +0 -0
- {whatnext-3.1 → whatnext-3.3}/LICENSE +0 -0
- {whatnext-3.1 → whatnext-3.3}/Makefile +0 -0
- {whatnext-3.1 → whatnext-3.3}/README.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/archive/done/tasks.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/docs/annotations.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/docs/basics.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/docs/deadlines.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/docs/deferring.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/docs/exclusions.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/docs/index.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/docs/installation.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/docs/prioritisation.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/docs/sequential.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/example/archived/projects/tangerine.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/example/projects/curtain.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/example/projects/fountain.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/example/projects/harvest.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/example/projects/obelisk.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/example/projects/tinsel.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/example/tasks.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/example/template.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/scripts/update-usage-examples.py +0 -0
- {whatnext-3.1 → whatnext-3.3}/tasks/documentation.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/tasks/listing.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/tasks/test_refactor.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/tasks/version_0.1.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/tasks/version_0.2.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/tasks/version_0.3.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/tasks/version_0.4.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/tasks/version_0.5.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/tasks/version_1.0.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/tasks/version_1.1.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/tasks/version_1.2.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/tasks/version_1.3.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/tasks.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/config/.whatnext +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/config/.whatnext.alt +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/config/apples.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/config/oranges.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/config-external +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/config.bats +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/deadline.bats +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/deferring/bare-after.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/deferring/circular-a.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/deferring/circular-b.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/deferring/deferred.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/deferring/duplicate-warnings.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/deferring/missing-dep.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/deferring/needs-absolute.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/deferring/needs-subdir.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/deferring/phase-misplaced.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/deferring/phases-empty.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/deferring/phases-partial.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/deferring/phases-queue.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/deferring/phases.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/deferring/regular.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/deferring/root-target.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/deferring/samename.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/deferring/subdir/needs-parent.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/deferring/subdir/needs-sibling.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/deferring/subdir/samename.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/deferring/subdir/target.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/edit.bats +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/headerless/annotation.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/headerless/deadline.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/housekeeping.bats +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/invalid.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/list.bats +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/next/alternate.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/next/append-after.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/next/append.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/next/empty.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/next/insert.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/next/projects/alpha/tasks/things.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/next/projects/alpha/tasks.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/next/projects/beta/things.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/next/something.txt +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/next/tasks.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/notnext.bats +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/queue/all-complete.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/queue/blocked.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/queue/in-progress.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/queue/normal.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/queue/prioritised.md +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/queue.bats +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/test_defer.py +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/test_edit.py +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/test_limit.py +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/test_output.py +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/test_summary.py +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/test_task.py +0 -0
- {whatnext-3.1 → whatnext-3.3}/tests/version.bats +0 -0
- {whatnext-3.1 → whatnext-3.3}/whatnext/__init__.py +0 -0
- {whatnext-3.1 → whatnext-3.3}/whatnext/guide.txt +0 -0
|
@@ -1,6 +1,33 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
3
|
|
|
4
|
+
## [v3.3] - 2026-04-13
|
|
5
|
+
|
|
6
|
+
**Added:**
|
|
7
|
+
- `next` reads from stdin when no task text is provided, allowing piping of
|
|
8
|
+
multiple tasks (one per line) into a file.
|
|
9
|
+
- `next` wraps the text of added tasks, to a default of 80 chars, which can be
|
|
10
|
+
overriden in the config `wrap_width` setting, or `WHATNEXT_WRAP_WIDTH`. If
|
|
11
|
+
the file has any existing lines longer than that, the file takes precedence
|
|
12
|
+
and the text is instead wrapped to match that longer width.
|
|
13
|
+
- `next --config {file}` specifies a non-default location config file,
|
|
14
|
+
or set `WHATNEXT_CONFIG`.
|
|
15
|
+
- Summary totals line is now shown in yellow as a differentiator.
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
## [v3.2] - 2026-04-09
|
|
19
|
+
|
|
20
|
+
**Added:**
|
|
21
|
+
- Summary view now shows a progress bar on the totals line.
|
|
22
|
+
- `--ignore-queue` flag to ignore `@queue` constraints.
|
|
23
|
+
- `--ignore-phase` flag to ignore `@phase` constraints.
|
|
24
|
+
- `--ignore-all` flag to ignore all deferral constraints.
|
|
25
|
+
|
|
26
|
+
**Fixes:**
|
|
27
|
+
- Directories are now properly ignored without requiring wildcards,
|
|
28
|
+
(`example/` and `example` both now work, `example/**` continues to work).
|
|
29
|
+
|
|
30
|
+
|
|
4
31
|
## [v3.1] - 2026-03-14
|
|
5
32
|
|
|
6
33
|
**Fixes:**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: whatnext
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.3
|
|
4
4
|
Summary: A lister of tasks found in Markdown files
|
|
5
5
|
Project-URL: Homepage, https://github.com/norm/whatnext
|
|
6
6
|
Project-URL: Repository, https://github.com/norm/whatnext
|
|
@@ -14,6 +14,7 @@ Classifier: Development Status :: 3 - Alpha
|
|
|
14
14
|
Classifier: Programming Language :: Python :: 3.10
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.11
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
17
18
|
Requires-Python: >=3.10
|
|
18
19
|
Requires-Dist: termcolor
|
|
19
20
|
Requires-Dist: toml
|
|
@@ -63,3 +63,9 @@ Once the file is chosen, the file is checked for Markdown headings.
|
|
|
63
63
|
|
|
64
64
|
If you would prefer the task is always added at the end of the file,
|
|
65
65
|
set `$WHATNEXT_APPEND_ONLY` to a value, or use `next -a`.
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
## The task text
|
|
69
|
+
|
|
70
|
+
The task text is all remaining arguments as a string. If no arguments remain,
|
|
71
|
+
`next` reads from stdin, with multiple lines making multiple tasks.
|
|
@@ -224,7 +224,13 @@ To show a random selection of tasks rather than by priority, use `5r`.
|
|
|
224
224
|
- [#] throw fruit at neighbours (they moved away)
|
|
225
225
|
```
|
|
226
226
|
|
|
227
|
-
- `--ignore-after` —
|
|
227
|
+
- `--ignore-after` — ignore `@after` constraints.
|
|
228
|
+
|
|
229
|
+
- `--ignore-queue` — ignore `@queue` constraints.
|
|
230
|
+
|
|
231
|
+
- `--ignore-phase` — ignore `@phase` constraints.
|
|
232
|
+
|
|
233
|
+
- `--ignore-all` — ignore all deferral constraints (`@after`, `@phase`, `@queue`).
|
|
228
234
|
|
|
229
235
|
- `-o` / `--open` — show only open tasks.
|
|
230
236
|
|
|
@@ -252,7 +258,7 @@ To show a random selection of tasks rather than by priority, use `5r`.
|
|
|
252
258
|
▚▚▚▚▚▚▚▚▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░ 1 1 2 projects/obelisk.md
|
|
253
259
|
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0 0 5 projects/tinsel.md
|
|
254
260
|
──────
|
|
255
|
-
|
|
261
|
+
▚▚▓▓▓▓░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1 2 20 23, of 33 total
|
|
256
262
|
|
|
257
263
|
▚ Blocked ▓ Partial ░ Open
|
|
258
264
|
```
|
|
@@ -274,7 +280,7 @@ To show a random selection of tasks rather than by priority, use `5r`.
|
|
|
274
280
|
░░░░░░░░░░░░░░░░░░░░░ 0 0 0 0 5 projects/tinsel.md
|
|
275
281
|
▚▚▚▚█████████████ 1 3 0 0 0 archived/projects/tangerine.md
|
|
276
282
|
──────────
|
|
277
|
-
|
|
283
|
+
▚▚█████▓▒▒░░░░░░░░░░░░░░░░░░░░░░░░ 2 5 1 2 23 33, of 33 total
|
|
278
284
|
|
|
279
285
|
▚ Cancelled █ Done ▓ Blocked ▒ Partial ░ Open
|
|
280
286
|
```
|
|
@@ -302,7 +308,7 @@ To show a random selection of tasks rather than by priority, use `5r`.
|
|
|
302
308
|
█████░░░░░░░░░░░░░░░░░░░░ 1 4 projects/tinsel.md
|
|
303
309
|
░░░░░░░░░░░░░░░░░░░░ 0 4 archived/projects/tangerine.md
|
|
304
310
|
────
|
|
305
|
-
|
|
311
|
+
███████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 5 25 30, of 33 total
|
|
306
312
|
|
|
307
313
|
█ High ░ (Overdue/Imminent/Medium/Normal)
|
|
308
314
|
```
|
|
@@ -22,3 +22,9 @@ Later sections also tagged with phase are not shown when earlier phases
|
|
|
22
22
|
are incomplete. Non-tagged sections are shown as normal.
|
|
23
23
|
|
|
24
24
|
- [X] implement \@phase directive for section-level sequencing
|
|
25
|
+
|
|
26
|
+
Be able to ignore deferring controls to list all incomplete tasks.
|
|
27
|
+
|
|
28
|
+
- [X] implement --ignore-queue
|
|
29
|
+
- [X] implement --ignore-phase
|
|
30
|
+
- [X] implement catch-all ignore flag
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
- [X] next should add to tasks.md in cwd before home
|
|
4
4
|
- [ ] next should have -e too, to edit task files
|
|
5
5
|
- [X] show diff when adding task with next
|
|
6
|
-
- [
|
|
7
|
-
- [
|
|
6
|
+
- [X] next reads stdin to add multiple tasks at once
|
|
7
|
+
- [X] wrap text to a maximum width when adding to the task file;
|
|
8
8
|
.whatnext config and env var
|
|
9
9
|
- [ ] directive in a file to tell `next` where to put new tasks
|
|
@@ -30,6 +30,31 @@ EOF
|
|
|
30
30
|
[ $status -eq 0 ]
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
+
@test "force colour output in summary" {
|
|
34
|
+
cd example
|
|
35
|
+
|
|
36
|
+
b=$'\033[34m'
|
|
37
|
+
r=$'\033[0m'
|
|
38
|
+
COLUMNS=40 \
|
|
39
|
+
WHATNEXT_TODAY=2025-01-01 \
|
|
40
|
+
run --separate-stderr \
|
|
41
|
+
whatnext \
|
|
42
|
+
--color \
|
|
43
|
+
--summary \
|
|
44
|
+
--open \
|
|
45
|
+
tasks.md
|
|
46
|
+
|
|
47
|
+
expected_output=$(sed -e 's/^ //' <<EOF
|
|
48
|
+
O
|
|
49
|
+
${b}█████████████████████████${r} 3 tasks.md
|
|
50
|
+
|
|
51
|
+
█ Open
|
|
52
|
+
EOF
|
|
53
|
+
)
|
|
54
|
+
diff -u <(echo "$expected_output") <(echo "$output")
|
|
55
|
+
[ $status -eq 0 ]
|
|
56
|
+
}
|
|
57
|
+
|
|
33
58
|
@test "disable colour output" {
|
|
34
59
|
WHATNEXT_TODAY=2025-12-25 \
|
|
35
60
|
WHATNEXT_COLOR=1 \
|
|
@@ -58,3 +83,27 @@ EOF
|
|
|
58
83
|
diff -u <(echo "$expected_output") <(echo "$output")
|
|
59
84
|
[ $status -eq 0 ]
|
|
60
85
|
}
|
|
86
|
+
|
|
87
|
+
@test "disable colour output in summary" {
|
|
88
|
+
cd example
|
|
89
|
+
|
|
90
|
+
COLUMNS=40 \
|
|
91
|
+
WHATNEXT_TODAY=2025-01-01 \
|
|
92
|
+
WHATNEXT_COLOR=1 \
|
|
93
|
+
run --separate-stderr \
|
|
94
|
+
whatnext \
|
|
95
|
+
--no-color \
|
|
96
|
+
--summary \
|
|
97
|
+
--open \
|
|
98
|
+
tasks.md
|
|
99
|
+
|
|
100
|
+
expected_output=$(sed -e 's/^ //' <<" EOF"
|
|
101
|
+
O
|
|
102
|
+
█████████████████████████ 3 tasks.md
|
|
103
|
+
|
|
104
|
+
█ Open
|
|
105
|
+
EOF
|
|
106
|
+
)
|
|
107
|
+
diff -u <(echo "$expected_output") <(echo "$output")
|
|
108
|
+
[ $status -eq 0 ]
|
|
109
|
+
}
|
|
@@ -320,3 +320,75 @@ teardown_file() {
|
|
|
320
320
|
diff -u <(echo "$expected_stderr") <(echo "$stderr")
|
|
321
321
|
[ $status -eq 0 ]
|
|
322
322
|
}
|
|
323
|
+
|
|
324
|
+
@test "queue can be ignored" {
|
|
325
|
+
expected_output=$(sed -e 's/^ //' <<" EOF"
|
|
326
|
+
example/projects/fountain.md:
|
|
327
|
+
- [ ] nigredo, the blackening or melanosis
|
|
328
|
+
- [ ] albedo, the whitening or leucosis
|
|
329
|
+
- [ ] citrinitas, the yellowing or xanthosis
|
|
330
|
+
- [ ] rubedo, the reddening, purpling, or iosis
|
|
331
|
+
EOF
|
|
332
|
+
)
|
|
333
|
+
|
|
334
|
+
WHATNEXT_TODAY=2025-01-01 \
|
|
335
|
+
run whatnext --ignore-queue example/projects/fountain.md
|
|
336
|
+
diff -u <(echo "$expected_output") <(echo "$output")
|
|
337
|
+
[ $status -eq 0 ]
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
@test "phase can be ignored" {
|
|
341
|
+
expected_output=$(sed -e 's/^ //' <<" EOF"
|
|
342
|
+
tests/deferring/phases.md:
|
|
343
|
+
# Bugs
|
|
344
|
+
- [ ] fix bug
|
|
345
|
+
# New feature [phase 1/3]
|
|
346
|
+
- [ ] install dependencies
|
|
347
|
+
# New feature / Implement [phase 2/3]
|
|
348
|
+
- [ ] write code
|
|
349
|
+
# New feature / Test [phase 3/3]
|
|
350
|
+
- [ ] run tests
|
|
351
|
+
EOF
|
|
352
|
+
)
|
|
353
|
+
|
|
354
|
+
run --separate-stderr \
|
|
355
|
+
whatnext \
|
|
356
|
+
--ignore-phase \
|
|
357
|
+
tests/deferring/phases.md
|
|
358
|
+
|
|
359
|
+
diff -u <(echo "$expected_output") <(echo "$output")
|
|
360
|
+
[ $status -eq 0 ]
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
@test "all deferral constraints can be ignored" {
|
|
364
|
+
expected_output=$(sed -e 's/^ //' <<" EOF"
|
|
365
|
+
example/projects/fountain.md:
|
|
366
|
+
- [ ] nigredo, the blackening or melanosis
|
|
367
|
+
- [ ] albedo, the whitening or leucosis
|
|
368
|
+
- [ ] citrinitas, the yellowing or xanthosis
|
|
369
|
+
- [ ] rubedo, the reddening, purpling, or iosis
|
|
370
|
+
tests/deferring/deferred.md:
|
|
371
|
+
- [ ] wait for regular
|
|
372
|
+
tests/deferring/phases.md:
|
|
373
|
+
# Bugs
|
|
374
|
+
- [ ] fix bug
|
|
375
|
+
# New feature [phase 1/3]
|
|
376
|
+
- [ ] install dependencies
|
|
377
|
+
# New feature / Implement [phase 2/3]
|
|
378
|
+
- [ ] write code
|
|
379
|
+
# New feature / Test [phase 3/3]
|
|
380
|
+
- [ ] run tests
|
|
381
|
+
EOF
|
|
382
|
+
)
|
|
383
|
+
|
|
384
|
+
WHATNEXT_TODAY=2025-01-01 \
|
|
385
|
+
run --separate-stderr \
|
|
386
|
+
whatnext \
|
|
387
|
+
--ignore-all \
|
|
388
|
+
example/projects/fountain.md \
|
|
389
|
+
tests/deferring/deferred.md \
|
|
390
|
+
tests/deferring/phases.md
|
|
391
|
+
|
|
392
|
+
diff -u <(echo "$expected_output") <(echo "$output")
|
|
393
|
+
[ $status -eq 0 ]
|
|
394
|
+
}
|
|
@@ -552,3 +552,75 @@ function setup {
|
|
|
552
552
|
[ -n "$(echo "$output" | grep tasks.md)" ]
|
|
553
553
|
[ $status -eq 0 ]
|
|
554
554
|
}
|
|
555
|
+
|
|
556
|
+
@test "ignore patterns without wildcard only match on whole names" {
|
|
557
|
+
expected_output=$(sed -e 's/^ //' <<" EOF"
|
|
558
|
+
tasks.md:
|
|
559
|
+
# Get S Done / MEDIUM
|
|
560
|
+
- [ ] question entire existence
|
|
561
|
+
|
|
562
|
+
tasks.md:
|
|
563
|
+
# Get S Done
|
|
564
|
+
- [ ] come up with better projects
|
|
565
|
+
- [ ] start third project
|
|
566
|
+
|
|
567
|
+
archived/projects/tangerine.md:
|
|
568
|
+
# Project Tangerine / FINISHED
|
|
569
|
+
- [X] acquire trebuchet plans
|
|
570
|
+
- [X] source counterweight materials
|
|
571
|
+
- [X] build it
|
|
572
|
+
- [#] throw fruit at neighbours (they moved away)
|
|
573
|
+
EOF
|
|
574
|
+
)
|
|
575
|
+
|
|
576
|
+
echo "ignore = ['projects', 'task']" > "$BATS_TEST_TMPDIR/.whatnext"
|
|
577
|
+
|
|
578
|
+
run --separate-stderr \
|
|
579
|
+
whatnext \
|
|
580
|
+
--config "$BATS_TEST_TMPDIR/.whatnext" \
|
|
581
|
+
--all
|
|
582
|
+
|
|
583
|
+
diff -u <(echo "$expected_output") <(echo "$output")
|
|
584
|
+
[ $status -eq 0 ]
|
|
585
|
+
|
|
586
|
+
echo "ignore = ['projects/', 'tasks']" > "$BATS_TEST_TMPDIR/.whatnext"
|
|
587
|
+
|
|
588
|
+
run --separate-stderr \
|
|
589
|
+
whatnext \
|
|
590
|
+
--config "$BATS_TEST_TMPDIR/.whatnext" \
|
|
591
|
+
--all
|
|
592
|
+
|
|
593
|
+
diff -u <(echo "$expected_output") <(echo "$output")
|
|
594
|
+
[ $status -eq 0 ]
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
@test "glob patterns still work with directory patterns" {
|
|
598
|
+
expected_output=$(sed -e 's/^ //' <<" EOF"
|
|
599
|
+
tasks.md:
|
|
600
|
+
# Get S Done / MEDIUM
|
|
601
|
+
- [ ] question entire existence
|
|
602
|
+
|
|
603
|
+
tasks.md:
|
|
604
|
+
# Get S Done
|
|
605
|
+
- [ ] come up with better projects
|
|
606
|
+
- [ ] start third project
|
|
607
|
+
|
|
608
|
+
archived/projects/tangerine.md:
|
|
609
|
+
# Project Tangerine / FINISHED
|
|
610
|
+
- [X] acquire trebuchet plans
|
|
611
|
+
- [X] source counterweight materials
|
|
612
|
+
- [X] build it
|
|
613
|
+
- [#] throw fruit at neighbours (they moved away)
|
|
614
|
+
EOF
|
|
615
|
+
)
|
|
616
|
+
|
|
617
|
+
echo "ignore = ['projects/**']" > "$BATS_TEST_TMPDIR/.whatnext"
|
|
618
|
+
|
|
619
|
+
run --separate-stderr \
|
|
620
|
+
whatnext \
|
|
621
|
+
--config "$BATS_TEST_TMPDIR/.whatnext" \
|
|
622
|
+
--all
|
|
623
|
+
|
|
624
|
+
diff -u <(echo "$expected_output") <(echo "$output")
|
|
625
|
+
[ $status -eq 0 ]
|
|
626
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
This line of context is deliberately written to be extraordinarily long, much longer than any task line in this file, to prove the script measures task width not arbitrary line width.
|
|
2
|
+
|
|
3
|
+
- [ ] short task
|
|
4
|
+
- [ ] another short task
|
|
5
|
+
- [ ] This is an existing task that is deliberately written to be wider than eighty characters on a single line
|