From 3f491e73cdbdc03d652bce81fdfc68eabb313213 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Fri, 5 Jun 2026 01:06:18 -0500 Subject: feat(comments): fetch an issue's full comment thread pearl-fetch-all-comments pages the whole comment connection for the issue at point and replaces its Comments subtree with the complete set. It's bound to C-; L f c and in the transient. The bulk list and view fetch showed only the newest pearl-list-comments-shown comments with an N/M+ overflow marker, so anything past the cap couldn't surface in the buffer. The replacement is surgical: pearl--replace-comments-subtree swaps only the Comments subtree, so the issue title, drawer, and description body keep any unsaved edits, and the new heading carries an exact N/N count. It refuses when the issue has unpushed comment edits (reusing the save model's dirty scanner) so the fetch can't clobber an unsent change. --- tests/test-pearl-menu.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/test-pearl-menu.el') diff --git a/tests/test-pearl-menu.el b/tests/test-pearl-menu.el index 8d23023..825d6bc 100644 --- a/tests/test-pearl-menu.el +++ b/tests/test-pearl-menu.el @@ -76,7 +76,9 @@ menu entry that still points at it fails here." pearl-switch-account pearl-copy-issue-url ;; set-default-view: the new Views-group entry - pearl-set-default-view)) + pearl-set-default-view + ;; fetch the full comment thread for the issue at point + pearl-fetch-all-comments)) (should (memq expected cmds))))) (provide 'test-pearl-menu) -- cgit v1.2.3