You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/plans/20260406-hunk-keyword-expansion.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,13 +40,13 @@ Add an `EndLine` field to `Annotation`. When creating an annotation, if the comm
40
40
- Modify: `ui/annotate.go`
41
41
- Modify: `ui/model_test.go`
42
42
43
-
-[] add `hunkEndLine(idx int) int` method that finds the last line of the hunk containing diffLines[idx]
44
-
-[] in the annotation creation path, after building the Annotation, check if comment contains hunk keywords (case-insensitive "hunk" or "block" as whole words)
45
-
-[] if keyword found and line is in a change hunk, set `EndLine` to hunk end line number via `hunkEndLine`
46
-
-[] write test: annotation with "refactor this hunk" gets EndLine populated
47
-
-[] write test: annotation with "this is fine" does NOT get EndLine
48
-
-[] write test: annotation on context line (not in hunk) does NOT get EndLine even with keyword
49
-
-[] run `make test && make lint`
43
+
-[x] add `hunkEndLine(idx int) int` method that finds the last line of the hunk containing diffLines[idx]
44
+
-[x] in the annotation creation path, after building the Annotation, check if comment contains hunk keywords (case-insensitive "hunk" or "block" as whole words)
45
+
-[x] if keyword found and line is in a change hunk, set `EndLine` to hunk end line number via `hunkEndLine`
46
+
-[x] write test: annotation with "refactor this hunk" gets EndLine populated
47
+
-[x] write test: annotation with "this is fine" does NOT get EndLine
48
+
-[x] write test: annotation on context line (not in hunk) does NOT get EndLine even with keyword
0 commit comments