aboutsummaryrefslogtreecommitdiff
path: root/tests/test-pearl-fields.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-25 05:00:48 -0500
committerCraig Jennings <c@cjennings.net>2026-05-25 05:00:48 -0500
commit9b17dc89fc25417e207943dafe8bf09ac211ae32 (patch)
treec92779db74b0a4cccc6e38d7307c781aa62e9356 /tests/test-pearl-fields.el
parent9f15d1823f388910f695da25ad5878312cc80330 (diff)
downloadpearl-9b17dc89fc25417e207943dafe8bf09ac211ae32.tar.gz
pearl-9b17dc89fc25417e207943dafe8bf09ac211ae32.zip
feat: add pearl-delete-current-comment
Pearl could render, create, and edit comments but not delete one, so removing your own comment meant leaving Emacs for the web app. I added the delete command and filled the reserved C-; L d c keymap slot. pearl-delete-current-comment runs from inside a comment's subtree. It's own-only, reusing the viewer gate from pearl-edit-current-comment: a comment authored by someone else, a bot, or an integration is refused with no commentDelete call. It confirms before the destructive mutation, and on success removes that comment's Org subtree, leaving sibling comments and the issue body untouched. pearl--delete-comment-async mirrors pearl--delete-issue-async. The delete is permanent. I verified Linear's commentDelete against the live API: the comment is not found immediately after, with no restore path, so unlike issueDelete this isn't a recoverable soft delete. Because of that, a comment with unsaved local edits (or no stored hash) gets a stronger "discard your local edits" confirmation rather than the plain prompt. I surfaced it as K in the transient Delete group and as d c in the prefix keymap, and inverted the keymap test that asserted d c was unbound.
Diffstat (limited to 'tests/test-pearl-fields.el')
0 files changed, 0 insertions, 0 deletions